public static interface MockRestServiceServer.MockRestServiceServerBuilder
MockRestServiceServer
.Modifier and Type | Method and Description |
---|---|
MockRestServiceServer |
build()
Build the
MockRestServiceServer and set up the underlying
RestTemplate or AsyncRestTemplate with a
ClientHttpRequestFactory that creates mock requests. |
MockRestServiceServer |
build(RequestExpectationManager manager)
An overloaded build alternative that accepts a custom
RequestExpectationManager . |
MockRestServiceServer.MockRestServiceServerBuilder |
ignoreExpectOrder(boolean ignoreExpectOrder)
Whether to allow expected requests to be executed in any order not
necessarily matching the order of declaration.
|
MockRestServiceServer.MockRestServiceServerBuilder ignoreExpectOrder(boolean ignoreExpectOrder)
Effectively a shortcut for:
builder.build(new UnorderedRequestExpectationManager)
.
By default this is set to false
ignoreExpectOrder
- whether to ignore the order of expectationsMockRestServiceServer build()
MockRestServiceServer
and set up the underlying
RestTemplate
or AsyncRestTemplate
with a
ClientHttpRequestFactory
that creates mock requests.MockRestServiceServer build(RequestExpectationManager manager)
RequestExpectationManager
.