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