public static interface MockRestServiceServer.MockRestServiceServerBuilder
MockRestServiceServer
.Modifier and Type | Method and Description |
---|---|
MockRestServiceServer |
build()
Build the
MockRestServiceServer and setting up the underlying
RestTemplate or AsyncRestTemplate with a
ClientHttpRequestFactory that creates mock requests. |
MockRestServiceServer.MockRestServiceServerBuilder |
expectationManager(RequestExpectationManager manager)
Configure a custom
RequestExpectationManager . |
MockRestServiceServer.MockRestServiceServerBuilder |
ignoreExpectOrder()
Allow expected requests to be executed in any order not necessarily
matching the order of declaration.
|
MockRestServiceServer.MockRestServiceServerBuilder ignoreExpectOrder()
builder.expectationManager(new UnorderedRequestExpectationManager)
MockRestServiceServer.MockRestServiceServerBuilder expectationManager(RequestExpectationManager manager)
RequestExpectationManager
.
By default SimpleRequestExpectationManager
is used. It is
also possible to switch to UnorderedRequestExpectationManager
by setting ignoreExpectOrder()
.
MockRestServiceServer build()
MockRestServiceServer
and setting up the underlying
RestTemplate
or AsyncRestTemplate
with a
ClientHttpRequestFactory
that creates mock requests.