Class PrivateMethodDemo
java.lang.Object
samples.privatemocking.PrivateMethodDemo
A class used to test the functionality to mock private methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intaTestMethod(int aValue) private IntegeraTestMethod(Integer aValue) private ReadercreateReader(File folder) private voiddoArrayInternal(String[] strings) voidprivate voidvoidprivate StringenhancedSay(String firstName, String lastName) intinvokeVarArgsMethod(int a, int b) intintprivate StringsayIt()private Stringprivate Stringprivate intvarArgsMethod(int... ints)
-
Constructor Details
-
PrivateMethodDemo
public PrivateMethodDemo()
-
-
Method Details
-
say
-
enhancedSay
-
sayYear
-
doSayYear
-
sayIt
-
sayIt
-
sayIt
-
methodCallingPrimitiveTestMethod
public int methodCallingPrimitiveTestMethod() -
methodCallingWrappedTestMethod
public int methodCallingWrappedTestMethod() -
aTestMethod
private int aTestMethod(int aValue) -
aTestMethod
-
doArrayStuff
-
doArrayInternal
-
doObjectStuff
-
doObjectInternal
-
invokeVarArgsMethod
public int invokeVarArgsMethod(int a, int b) -
varArgsMethod
private int varArgsMethod(int... ints) -
createReader
- Throws:
FileNotFoundException
-