Class DefaultPrivateMethodVerification
- java.lang.Object
-
- org.powermock.api.mockito.internal.verification.DefaultPrivateMethodVerification
-
- All Implemented Interfaces:
PrivateMethodVerification
public class DefaultPrivateMethodVerification extends java.lang.Object implements PrivateMethodVerification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
DefaultPrivateMethodVerification.VerificationArguments
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
objectToVerify
-
Constructor Summary
Constructors Constructor Description DefaultPrivateMethodVerification(java.lang.Object objectToVerify)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
invoke(java.lang.Object... arguments)
Verify calls to private methods without having to specify the method name.WithOrWithoutVerifiedArguments
invoke(java.lang.reflect.Method method)
Verify calls to the specific method.void
invoke(java.lang.String methodToExecute, java.lang.Object... arguments)
Verify a private method call by specifying the method name of the method to verify.
-
-
-
Method Detail
-
invoke
public void invoke(java.lang.Object... arguments) throws java.lang.Exception
Description copied from interface:PrivateMethodVerification
Verify calls to private methods without having to specify the method name. The method will be looked up using the parameter types (if possible).- Specified by:
invoke
in interfacePrivateMethodVerification
- Throws:
java.lang.Exception
- If something unexpected goes wrong.
-
invoke
public void invoke(java.lang.String methodToExecute, java.lang.Object... arguments) throws java.lang.Exception
Description copied from interface:PrivateMethodVerification
Verify a private method call by specifying the method name of the method to verify.- Specified by:
invoke
in interfacePrivateMethodVerification
- Throws:
java.lang.Exception
- If something unexpected goes wrong.
-
invoke
public WithOrWithoutVerifiedArguments invoke(java.lang.reflect.Method method) throws java.lang.Exception
Description copied from interface:PrivateMethodVerification
Verify calls to the specific method.- Specified by:
invoke
in interfacePrivateMethodVerification
- Throws:
java.lang.Exception
- If something unexpected goes wrong.
-
-