Interface MockRestServiceServer.MockRestServiceServerBuilder
- Enclosing class:
- MockRestServiceServer
public static interface MockRestServiceServer.MockRestServiceServerBuilder
Builder to create aMockRestServiceServer.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MockRestServiceServerbuild()Build theMockRestServiceServerand set up the underlyingRestTemplateorAsyncRestTemplatewith aClientHttpRequestFactorythat creates mock requests.MockRestServiceServerbuild(RequestExpectationManager manager)An overloaded build alternative that accepts a customRequestExpectationManager.MockRestServiceServer.MockRestServiceServerBuilderignoreExpectOrder(boolean ignoreExpectOrder)Whether to allow expected requests to be executed in any order not necessarily matching the order of declaration.
Method Detail
ignoreExpectOrder
MockRestServiceServer.MockRestServiceServerBuilder ignoreExpectOrder(boolean ignoreExpectOrder)
Whether to allow expected requests to be executed in any order not necessarily matching the order of declaration.When set to "true" this is effectively a shortcut for:
builder.build(new UnorderedRequestExpectationManager).- Parameters:
ignoreExpectOrder- whether to ignore the order of expectations
build
MockRestServiceServer build()
Build theMockRestServiceServerand set up the underlyingRestTemplateorAsyncRestTemplatewith aClientHttpRequestFactorythat creates mock requests.
build
MockRestServiceServer build(RequestExpectationManager manager)
An overloaded build alternative that accepts a customRequestExpectationManager.