PrivateMethodVerification
public class DefaultPrivateMethodVerification extends Object implements PrivateMethodVerification
Constructor | Description |
---|---|
DefaultPrivateMethodVerification(Object objectToVerify) |
Modifier and Type | Method | Description |
---|---|---|
void |
invoke(Object... arguments) |
Verify calls to private methods without having to specify the method
name.
|
WithOrWithoutVerifiedArguments |
invoke(Method method) |
Verify calls to the specific method.
|
void |
invoke(String methodToExecute,
Object... arguments) |
Verify a private method call by specifying the method name of the method
to verify.
|
public DefaultPrivateMethodVerification(Object objectToVerify)
public void invoke(Object... arguments) throws Exception
PrivateMethodVerification
invoke
in interface PrivateMethodVerification
Exception
- If something unexpected goes wrong.public void invoke(String methodToExecute, Object... arguments) throws Exception
PrivateMethodVerification
invoke
in interface PrivateMethodVerification
Exception
- If something unexpected goes wrong.public WithOrWithoutVerifiedArguments invoke(Method method) throws Exception
PrivateMethodVerification
invoke
in interface PrivateMethodVerification
Exception
- If something unexpected goes wrong.Copyright © 2007–2019. All rights reserved.