public class DefaultPrivateMethodVerification extends java.lang.Object implements PrivateMethodVerification
| Constructor and Description |
|---|
DefaultPrivateMethodVerification(java.lang.Object objectToVerify) |
| Modifier and Type | Method and Description |
|---|---|
WithOrWithoutVerifiedArguments |
invoke(java.lang.reflect.Method method)
Verify calls to the specific method.
|
void |
invoke(java.lang.Object... arguments)
Verify calls to private methods without having to specify the method
name.
|
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.
|
public DefaultPrivateMethodVerification(java.lang.Object objectToVerify)
public void invoke(java.lang.Object... arguments)
throws java.lang.Exception
PrivateMethodVerificationinvoke in interface PrivateMethodVerificationjava.lang.Exception - If something unexpected goes wrong.public void invoke(java.lang.String methodToExecute,
java.lang.Object... arguments)
throws java.lang.Exception
PrivateMethodVerificationinvoke in interface PrivateMethodVerificationjava.lang.Exception - If something unexpected goes wrong.#invoke(Object...)}public WithOrWithoutVerifiedArguments invoke(java.lang.reflect.Method method) throws java.lang.Exception
PrivateMethodVerificationinvoke in interface PrivateMethodVerificationjava.lang.Exception - If something unexpected goes wrong.