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.
-
Field Summary
Fields inherited from class mockit.FakeInvocationProceedTest.BaseClassToBeFaked
name
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new class to be faked.ClassToBeFaked
(String name) Instantiates a new class to be faked. -
Method Summary
Modifier and TypeMethodDescriptionanotherMethodToBeFaked
(String s, boolean b, List<Integer> ints) Another method to be faked.boolean
Method to be faked.protected int
methodToBeFaked
(int i, Object... args) Method to be faked.protected static void
Native method.static boolean
Static method to be faked.Methods inherited from class mockit.FakeInvocationProceedTest.BaseClassToBeFaked
baseMethod, methodToBeFaked
-
Constructor Details
-
ClassToBeFaked
public ClassToBeFaked()Instantiates a new class to be faked. -
ClassToBeFaked
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
Method to be faked.- Parameters:
i
- the iargs
- the args- Returns:
- the int
-
anotherMethodToBeFaked
Another method to be faked.- Parameters:
s
- the sb
- the bints
- the ints- Returns:
- the string
-
staticMethodToBeFaked
Static method to be faked.- Returns:
- true, if successful
- Throws:
FileNotFoundException
- the file not found exception
-
nativeMethod
protected static void nativeMethod()Native method.
-