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 voiddoArrayStuff(String v)voiddoObjectStuff(Object o)StringenhancedSay(String firstName, String lastName)intinvokeVarArgsMethod(int a, int b)intmethodCallingPrimitiveTestMethod()intmethodCallingWrappedTestMethod()Stringsay(String name)StringsayYear(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)
-
-