org.springframework.restdocs.operation.OperationRequestPartFactory Java Examples

The following examples show how to use org.springframework.restdocs.operation.OperationRequestPartFactory. 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 4 votes vote down vote up
private OperationRequestPart buildPart() {
	return new OperationRequestPartFactory().create(this.name,
			this.submittedFileName, this.content, this.headers);
}
 
Example #2
Source File: OperationBuilder.java    From restdocs-wiremock with Apache License 2.0 4 votes vote down vote up
private OperationRequestPart buildPart() {
	return new OperationRequestPartFactory().create(this.name,
			this.submittedFileName, this.content, this.headers);
}
 
Example #3
Source File: MultipartContentOperationPreprocessorTest.java    From spring-auto-restdocs with Apache License 2.0 4 votes vote down vote up
@Before
public void setUp() {
    preprocessor = new MultipartContentOperationPreprocessor();
    requestFactory = new OperationRequestFactory();
    partFactory = new OperationRequestPartFactory();
}