クラス 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 ExpectedCountbetween(int min, int max) minとmaxの間の回数。int予想されるカウント範囲のmax境界を返します。int予想されるカウント範囲のmin境界を返します。static ExpectedCount何度も(1..Integer.MAX_VALUE の範囲)。static ExpectedCountmax(int max) 最大max回数。static ExpectedCountmin(int min) min回以上。static ExpectedCountnever()呼び出しはまったく予期されていません。static ExpectedCountonce()一度のみ。static ExpectedCounttimes(int count) ちょうど N 回。static ExpectedCounttwice()ちょうど 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の間の回数。