Class ExpectedCount
java.lang.Object
org.springframework.test.web.client.ExpectedCount
A simple type representing a range for an expected count.
Examples:
import static org.springframework.test.web.client.ExpectedCount.* once() twice() manyTimes() times(5) min(2) max(4) between(2, 4) never()
- Since:
 - 4.3
 - Author:
 - Rossen Stoyanchev
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static ExpectedCountonce()Exactly once.static ExpectedCounttimes(int count) Exactly N times.static ExpectedCounttwice()Exactly twice. 
- 
Method Details
- 
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
 - 
between
Betweenminandmaxnumber of times. 
 -