org.springframework.restdocs.JUnitRestDocumentation Java Examples
The following examples show how to use
org.springframework.restdocs.JUnitRestDocumentation.
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: RestDocumentationTest.java From restdocs-wiremock with Apache License 2.0 | 5 votes |
@Test public void should_create_restdocumentation() { JUnitRestDocumentation documentation1 = RestDocumentation.usingGradleDir(); Assert.assertNotNull(documentation1); JUnitRestDocumentation documentation2 = RestDocumentation.usingMavenDir(); Assert.assertNotNull(documentation2); }
Example #2
Source File: RestDocumentation.java From restdocs-wiremock with Apache License 2.0 | 2 votes |
/** * @return JUnit {@link TestRule} for Spring REST Docs, preconfigured for * writing to build/generated-snippets. */ public static JUnitRestDocumentation usingGradleDir() { return new JUnitRestDocumentation("build/generated-snippets"); }
Example #3
Source File: RestDocumentation.java From restdocs-wiremock with Apache License 2.0 | 2 votes |
/** * @return JUnit {@link TestRule} for Spring REST Docs, preconfigured for * writing to target/generated-snippets. */ public static JUnitRestDocumentation usingMavenDir() { return new JUnitRestDocumentation("target/generated-snippets"); }