类的使用
cn.taketoday.test.web.client.ExpectedCount
使用ExpectedCount的程序包
程序包
说明
Web client test utilities.
Contains client-side REST testing support.
-
cn.taketoday.framework.test.web.client中ExpectedCount的使用
修饰符和类型方法说明RootUriRequestExpectationManager.expectRequest(ExpectedCount count, RequestMatcher requestMatcher) -
cn.taketoday.test.web.client中ExpectedCount的使用
修饰符和类型方法说明static ExpectedCountExpectedCount.between(int min, int max) Betweenminandmaxnumber of times.DefaultRequestExpectation.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. min=0 and max=0.static ExpectedCountExpectedCount.once()Exactly once.static ExpectedCountExpectedCount.times(int count) Exactly N times.static ExpectedCountExpectedCount.twice()Exactly twice.修饰符和类型方法说明MockRestServiceServer.expect(ExpectedCount count, RequestMatcher matcher) An alternative toMockRestServiceServer.expect(RequestMatcher)that also indicates how many times the request is expected to be executed.AbstractRequestExpectationManager.expectRequest(ExpectedCount count, RequestMatcher matcher) RequestExpectationManager.expectRequest(ExpectedCount count, RequestMatcher requestMatcher) Set up a new request expectation.参数类型为ExpectedCount的cn.taketoday.test.web.client中的构造器限定符构造器说明DefaultRequestExpectation(ExpectedCount expectedCount, RequestMatcher requestMatcher) Create a new request expectation that should be called a number of times as indicated byRequestCount.RequestCount(ExpectedCount expectedCount)