org.springframework.restdocs.operation.OperationRequestFactory Java Examples
The following examples show how to use
org.springframework.restdocs.operation.OperationRequestFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OperationBuilder.java From restdocs-raml with MIT License | 5 votes |
private OperationRequest buildRequest() { List<OperationRequestPart> parts = new ArrayList<>(); for (OperationRequestPartBuilder builder : this.partBuilders) { parts.add(builder.buildPart()); } return new OperationRequestFactory().create(this.requestUri, this.method, this.content, this.headers, this.parameters, parts); }
Example #2
Source File: OperationBuilder.java From restdocs-wiremock with Apache License 2.0 | 5 votes |
private OperationRequest buildRequest() { List<OperationRequestPart> parts = new ArrayList<>(); for (OperationRequestPartBuilder builder : this.partBuilders) { parts.add(builder.buildPart()); } return new OperationRequestFactory().create(this.requestUri, this.method, this.content, this.headers, this.parameters, parts); }
Example #3
Source File: MultipartContentOperationPreprocessorTest.java From spring-auto-restdocs with Apache License 2.0 | 4 votes |
@Before public void setUp() { preprocessor = new MultipartContentOperationPreprocessor(); requestFactory = new OperationRequestFactory(); partFactory = new OperationRequestPartFactory(); }