public class ExpectedCount
extends java.lang.Object
Examples:
import static org.springframework.test.web.client.ExpectedCount.* once() twice() manyTimes() times(5) min(2) max(4) between(2, 4) never()
Modifier and Type | Method and Description |
---|---|
static ExpectedCount |
between(int min,
int max)
Between
min and max number of times. |
int |
getMaxCount()
Return the
max boundary of the expected count range. |
int |
getMinCount()
Return the
min boundary of the expected count range. |
static ExpectedCount |
manyTimes()
Many times (range of 1..Integer.MAX_VALUE).
|
static ExpectedCount |
max(int max)
At most
max number of times. |
static ExpectedCount |
min(int min)
At least
min number of times. |
static ExpectedCount |
never()
No calls expected at all, i.e.
|
static ExpectedCount |
once()
Exactly once.
|
static ExpectedCount |
times(int count)
Exactly N times.
|
static ExpectedCount |
twice()
Exactly twice.
|
public int getMinCount()
min
boundary of the expected count range.public int getMaxCount()
max
boundary of the expected count range.public static ExpectedCount once()
public static ExpectedCount twice()
public static ExpectedCount manyTimes()
public static ExpectedCount times(int count)
public static ExpectedCount min(int min)
min
number of times.public static ExpectedCount max(int max)
max
number of times.public static ExpectedCount never()
public static ExpectedCount between(int min, int max)
min
and max
number of times.