Package samples.privatemocking
Class PrivateMethodDemo
- java.lang.Object
-
- samples.privatemocking.PrivateMethodDemo
-
public class PrivateMethodDemo extends Object
A class used to test the functionality to mock private methods.- Author:
- Johan Haleby
-
-
Constructor Summary
Constructors Constructor Description PrivateMethodDemo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doArrayStuff(String v)
void
doObjectStuff(Object o)
String
enhancedSay(String firstName, String lastName)
int
invokeVarArgsMethod(int a, int b)
int
methodCallingPrimitiveTestMethod()
int
methodCallingWrappedTestMethod()
String
say(String name)
String
sayYear(String name, int years)
-
-
-
Method Detail
-
methodCallingPrimitiveTestMethod
public int methodCallingPrimitiveTestMethod()
-
methodCallingWrappedTestMethod
public int methodCallingWrappedTestMethod()
-
doArrayStuff
public void doArrayStuff(String v)
-
doObjectStuff
public void doObjectStuff(Object o)
-
invokeVarArgsMethod
public int invokeVarArgsMethod(int a, int b)
-
-