public class DefaultPrivateMethodVerification extends Object implements PrivateMethodVerification
Constructor and Description |
---|
DefaultPrivateMethodVerification(Object objectToVerify) |
Modifier and Type | Method and Description |
---|---|
WithOrWithoutVerifiedArguments |
invoke(Method method)
Verify calls to the specific method.
|
void |
invoke(Object... arguments)
Verify calls to private methods without having to specify the method
name.
|
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.#invoke(Object...)}
public WithOrWithoutVerifiedArguments invoke(Method method) throws Exception
PrivateMethodVerification
invoke
in interface PrivateMethodVerification
Exception
- If something unexpected goes wrong.Copyright © 2007–2016. All rights reserved.