类 MockRestServiceServer.AbstractMockRestServiceServerBuilder
java.lang.Object
cn.taketoday.test.web.client.MockRestServiceServer.AbstractMockRestServiceServerBuilder
- 直接已知子类:
MockRestServiceServer.RestClientMockRestServiceServerBuilder,MockRestServiceServer.RestTemplateMockRestServiceServerBuilder
private abstract static class MockRestServiceServer.AbstractMockRestServiceServerBuilder
extends Object
implements MockRestServiceServer.MockRestServiceServerBuilder
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Use theBufferingClientHttpRequestFactorywrapper to buffer the input and output streams, and for example, allow multiple reads of the response body.build()Build theMockRestServiceServerand set up the underlyingRestTemplatewith aClientHttpRequestFactorythat creates mock requests.build(RequestExpectationManager manager) An overloaded build alternative that accepts a customRequestExpectationManager.ignoreExpectOrder(boolean ignoreExpectOrder) Whether to allow expected requests to be executed in any order not necessarily matching the order of declaration.protected abstract voidinjectRequestFactory(cn.taketoday.http.client.ClientHttpRequestFactory requestFactory)
-
字段详细资料
-
ignoreExpectOrder
private boolean ignoreExpectOrder -
bufferContent
private boolean bufferContent
-
-
构造器详细资料
-
AbstractMockRestServiceServerBuilder
private AbstractMockRestServiceServerBuilder()
-
-
方法详细资料
-
ignoreExpectOrder
public MockRestServiceServer.MockRestServiceServerBuilder ignoreExpectOrder(boolean ignoreExpectOrder) Whether to allow expected requests to be executed in any order not necessarily matching the order of declaration.Effectively a shortcut for:
builder.build(new UnorderedRequestExpectationManager).By default this is set to
false- 指定者:
ignoreExpectOrder在接口中MockRestServiceServer.MockRestServiceServerBuilder- 参数:
ignoreExpectOrder- whether to ignore the order of expectations
-
bufferContent
Use theBufferingClientHttpRequestFactorywrapper to buffer the input and output streams, and for example, allow multiple reads of the response body. -
build
Build theMockRestServiceServerand set up the underlyingRestTemplatewith aClientHttpRequestFactorythat creates mock requests. -
build
An overloaded build alternative that accepts a customRequestExpectationManager. -
injectRequestFactory
protected abstract void injectRequestFactory(cn.taketoday.http.client.ClientHttpRequestFactory requestFactory)
-