Package mockit

Class FakeInvocationProceedTest.ClassToBeFaked

java.lang.Object
mockit.FakeInvocationProceedTest.BaseClassToBeFaked
mockit.FakeInvocationProceedTest.ClassToBeFaked
Enclosing class:
FakeInvocationProceedTest

public static class FakeInvocationProceedTest.ClassToBeFaked extends FakeInvocationProceedTest.BaseClassToBeFaked
The Class ClassToBeFaked.
  • Constructor Details

    • ClassToBeFaked

      public ClassToBeFaked()
      Instantiates a new class to be faked.
    • ClassToBeFaked

      public ClassToBeFaked(String name)
      Instantiates a new class to be faked.
      Parameters:
      name - the name
  • Method Details

    • methodToBeFaked

      public boolean methodToBeFaked()
      Method to be faked.
      Returns:
      true, if successful
    • methodToBeFaked

      protected int methodToBeFaked(int i, Object... args)
      Method to be faked.
      Parameters:
      i - the i
      args - the args
      Returns:
      the int
    • anotherMethodToBeFaked

      public String anotherMethodToBeFaked(String s, boolean b, List<Integer> ints)
      Another method to be faked.
      Parameters:
      s - the s
      b - the b
      ints - the ints
      Returns:
      the string
    • staticMethodToBeFaked

      public static boolean staticMethodToBeFaked() throws FileNotFoundException
      Static method to be faked.
      Returns:
      true, if successful
      Throws:
      FileNotFoundException - the file not found exception
    • nativeMethod

      protected static void nativeMethod()
      Native method.