Class DefaultPrivateMethodVerification
- java.lang.Object
-
- org.powermock.api.mockito.internal.verification.DefaultPrivateMethodVerification
-
- All Implemented Interfaces:
PrivateMethodVerification
public class DefaultPrivateMethodVerification extends Object implements PrivateMethodVerification
-
-
Constructor Summary
Constructors Constructor Description DefaultPrivateMethodVerification(Object objectToVerify)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvoke(Object... arguments)Verify calls to private methods without having to specify the method name.WithOrWithoutVerifiedArgumentsinvoke(Method method)Verify calls to the specific method.voidinvoke(String methodToExecute, Object... arguments)Verify a private method call by specifying the method name of the method to verify.
-
-
-
Constructor Detail
-
DefaultPrivateMethodVerification
public DefaultPrivateMethodVerification(Object objectToVerify)
-
-
Method Detail
-
invoke
public void invoke(Object... arguments) throws Exception
Description copied from interface:PrivateMethodVerificationVerify 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:
invokein interfacePrivateMethodVerification- Throws:
Exception- If something unexpected goes wrong.
-
invoke
public void invoke(String methodToExecute, Object... arguments) throws Exception
Description copied from interface:PrivateMethodVerificationVerify a private method call by specifying the method name of the method to verify.- Specified by:
invokein interfacePrivateMethodVerification- Throws:
Exception- If something unexpected goes wrong.
-
invoke
public WithOrWithoutVerifiedArguments invoke(Method method) throws Exception
Description copied from interface:PrivateMethodVerificationVerify calls to the specific method.- Specified by:
invokein interfacePrivateMethodVerification- Throws:
Exception- If something unexpected goes wrong.
-
-