クラス ExpectedCount
java.lang.ObjectSE
org.springframework.test.web.client.ExpectedCount
予想されるカウントの範囲を表す単純な型。
例:
import static org.springframework.test.web.client.ExpectedCount.* once() twice() manyTimes() times(5) min(2) max(4) between(2, 4) never()
- 導入:
- 4.3
- 作成者:
- Rossen Stoyanchev
方法の概要
修飾子と型メソッド説明static ExpectedCount
between
(int min, int max) min
とmax
の間の回数。int
予想されるカウント範囲のmax
境界を返します。int
予想されるカウント範囲のmin
境界を返します。static ExpectedCount
何度も(1..Integer.MAX_VALUE の範囲)。static ExpectedCount
max
(int max) 最大max
回数。static ExpectedCount
min
(int min) min
回以上。static ExpectedCount
never()
呼び出しはまったく予期されていません。static ExpectedCount
once()
一度のみ。static ExpectedCount
times
(int count) ちょうど N 回。static ExpectedCount
twice()
ちょうど 2 回。
メソッドの詳細
getMinCount
public int getMinCount()予想されるカウント範囲のmin
境界を返します。getMaxCount
public int getMaxCount()予想されるカウント範囲のmax
境界を返します。once
一度のみ。twice
ちょうど 2 回。manyTimes
何度も(1..Integer.MAX_VALUE の範囲)。times
ちょうど N 回。min
min
回以上。max
最大max
回数。never
コールはまったく予期されていません。つまり、min = 0 および max = 0 です。- 導入:
- 4.3.6
between
min
とmax
の間の回数。