Package | Description |
---|---|
org.springframework.test.web.client |
Contains client-side REST testing support.
|
Modifier and Type | Method and Description |
---|---|
static ExpectedCount |
ExpectedCount.between(int min,
int max)
Between
min and max number of times. |
ExpectedCount |
DefaultRequestExpectation.RequestCount.getExpectedCount() |
static ExpectedCount |
ExpectedCount.manyTimes()
Many times (range of 1..Integer.MAX_VALUE).
|
static ExpectedCount |
ExpectedCount.max(int max)
At most
max number of times. |
static ExpectedCount |
ExpectedCount.min(int min)
At least
min number of times. |
static ExpectedCount |
ExpectedCount.never()
No calls expected at all, i.e.
|
static ExpectedCount |
ExpectedCount.once()
Exactly once.
|
static ExpectedCount |
ExpectedCount.times(int count)
Exactly N times.
|
static ExpectedCount |
ExpectedCount.twice()
Exactly twice.
|
Modifier and Type | Method and Description |
---|---|
ResponseActions |
MockRestServiceServer.expect(ExpectedCount count,
RequestMatcher matcher)
An alternative to
MockRestServiceServer.expect(RequestMatcher) that also indicates how
many times the request is expected to be executed. |
ResponseActions |
RequestExpectationManager.expectRequest(ExpectedCount count,
RequestMatcher requestMatcher)
Set up a new request expectation.
|
ResponseActions |
AbstractRequestExpectationManager.expectRequest(ExpectedCount count,
RequestMatcher matcher) |
Constructor and Description |
---|
DefaultRequestExpectation(ExpectedCount expectedCount,
RequestMatcher requestMatcher)
Create a new request expectation that should be called a number of times
as indicated by
RequestCount . |
RequestCount(ExpectedCount expectedCount) |