org.springframework.restdocs.ManualRestDocumentation Java Examples

The following examples show how to use org.springframework.restdocs.ManualRestDocumentation. 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 vote down vote up
private RestDocumentationContext createContext() {
	ManualRestDocumentation manualRestDocumentation = new ManualRestDocumentation(
			this.outputDirectory.getAbsolutePath());
	manualRestDocumentation.beforeTest(null, null);
	RestDocumentationContext context = manualRestDocumentation.beforeOperation();
	return context;
}
 
Example #2
Source File: WireMockSnippetTests.java    From spring-cloud-contract with Apache License 2.0 5 votes vote down vote up
@Before
public void setup() throws IOException {
	this.outputFolder = this.tmp.newFolder();
	ManualRestDocumentation restDocumentation = new ManualRestDocumentation(
			this.outputFolder.getAbsolutePath());
	restDocumentation.beforeTest(this.getClass(), "method");
	this.context = restDocumentation.beforeOperation();
	this.operation = operation(request(), response(), this.context);
}
 
Example #3
Source File: OperationBuilder.java    From restdocs-wiremock with Apache License 2.0 5 votes vote down vote up
private RestDocumentationContext createContext() {
	ManualRestDocumentation manualRestDocumentation = new ManualRestDocumentation(
			this.outputDirectory.getAbsolutePath());
	manualRestDocumentation.beforeTest(null, null);
	RestDocumentationContext context = manualRestDocumentation.beforeOperation();
	return context;
}