public class InvocationVerifier extends Object
| Modifier and Type | Method and Description |
|---|---|
InvocationVerifier |
times(int count)
Expect several consecutive invocations with the same parameters
|
static InvocationVerifier |
verifyInvoked(String mockMethodName)
Get counter to check whether specified mock method invoked
|
InvocationVerifier |
with(Object... args)
Expect mock method invoked with specified parameters
|
InvocationVerifier |
withInOrder(Object... args)
Expect next mock method call was invoked with specified parameters
|
InvocationVerifier |
without(Object... args)
Expect mock method had never invoked with specified parameters
|
InvocationVerifier |
withTimes(int expectedCount)
Expect mock method have been invoked specified times
|
public static InvocationVerifier verifyInvoked(String mockMethodName)
mockMethodName - name of a mock methodpublic InvocationVerifier with(Object... args)
args - parameters to comparepublic InvocationVerifier withInOrder(Object... args)
args - parameters to comparepublic InvocationVerifier without(Object... args)
args - parameters to comparepublic InvocationVerifier withTimes(int expectedCount)
expectedCount - times to comparepublic InvocationVerifier times(int count)
count - number of invocationsCopyright © 2021. All rights reserved.