类 ExpectedCount
java.lang.Object
cn.taketoday.test.web.client.ExpectedCount
A simple type representing a range for an expected count.
Examples:
import static cn.taketoday.test.web.client.ExpectedCount.* once() twice() manyTimes() times(5) min(2) max(4) between(2, 4) never()
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ExpectedCountbetween(int min, int max) Betweenminandmaxnumber of times.intReturn themaxboundary of the expected count range.intReturn theminboundary of the expected count range.static ExpectedCountMany times (range of 1..Integer.MAX_VALUE).static ExpectedCountmax(int max) At mostmaxnumber of times.static ExpectedCountmin(int min) At leastminnumber of times.static ExpectedCountnever()No calls expected at all, i.e. min=0 and max=0.static ExpectedCountonce()Exactly once.static ExpectedCounttimes(int count) Exactly N times.static ExpectedCounttwice()Exactly twice.
-
字段详细资料
-
minCount
private final int minCount -
maxCount
private final int maxCount
-
-
构造器详细资料
-
ExpectedCount
private ExpectedCount(int minCount, int maxCount) Private constructor. See static factory methods in this class.
-
-
方法详细资料
-
getMinCount
public int getMinCount()Return theminboundary of the expected count range. -
getMaxCount
public int getMaxCount()Return themaxboundary of the expected count range. -
once
Exactly once. -
twice
Exactly twice. -
manyTimes
Many times (range of 1..Integer.MAX_VALUE). -
times
Exactly N times. -
min
At leastminnumber of times. -
max
At mostmaxnumber of times. -
never
No calls expected at all, i.e. min=0 and max=0.- 从以下版本开始:
- 4.0
-
between
Betweenminandmaxnumber of times.
-