Uses of Class
org.springframework.test.web.client.ExpectedCount
Packages that use ExpectedCount Package Description org.springframework.test.web.client Contains client-side REST testing support.Uses of ExpectedCount in org.springframework.test.web.client
Methods in org.springframework.test.web.client that return ExpectedCount Modifier and Type Method Description static ExpectedCountExpectedCount. between(int min, int max)Betweenminandmaxnumber of times.ExpectedCountDefaultRequestExpectation.RequestCount. getExpectedCount()static ExpectedCountExpectedCount. manyTimes()Many times (range of 1..Integer.MAX_VALUE).static ExpectedCountExpectedCount. max(int max)At mostmaxnumber of times.static ExpectedCountExpectedCount. min(int min)At leastminnumber of times.static ExpectedCountExpectedCount. never()No calls expected at all, i.e.static ExpectedCountExpectedCount. once()Exactly once.static ExpectedCountExpectedCount. times(int count)Exactly N times.static ExpectedCountExpectedCount. twice()Exactly twice.Methods in org.springframework.test.web.client with parameters of type ExpectedCount Modifier and Type Method Description ResponseActionsMockRestServiceServer. expect(ExpectedCount count, RequestMatcher matcher)An alternative toMockRestServiceServer.expect(RequestMatcher)that also indicates how many times the request is expected to be executed.ResponseActionsAbstractRequestExpectationManager. expectRequest(ExpectedCount count, RequestMatcher matcher)ResponseActionsRequestExpectationManager. expectRequest(ExpectedCount count, RequestMatcher requestMatcher)Set up a new request expectation.Constructors in org.springframework.test.web.client with parameters of type ExpectedCount Constructor Description DefaultRequestExpectation(ExpectedCount expectedCount, RequestMatcher requestMatcher)Create a new request expectation that should be called a number of times as indicated byRequestCount.RequestCount(ExpectedCount expectedCount)