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)
When set to "true" this is effectively a shortcut for:
builder.build(new UnorderedRequestExpectationManager).
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.