public class ExpectedCount extends Object
Examples:
import static org.springframework.test.web.client.ExpectedCount.* once() manyTimes() times(5) min(2) max(4) between(2, 4)
| 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 |
once()
Exactly once.
|
static ExpectedCount |
times(int count)
Exactly N times.
|
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 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 between(int min, int max)
min and max number of times.