Provide examples for JUnit rule configuration with both Maven and Gradle

Closes gh-162
This commit is contained in:
Andy Wilkinson
2015-12-03 16:02:16 +00:00
parent 310639a4cc
commit c559efb81b
2 changed files with 24 additions and 9 deletions

View File

@@ -28,10 +28,9 @@ import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.docu
public class ExampleApplicationTests {
// tag::mock-mvc-setup[]
@Rule
public final RestDocumentation restDocumentation = new RestDocumentation("build/generated-snippets");
public final RestDocumentation restDocumentation = new RestDocumentation("target/generated-snippets");
// tag::mock-mvc-setup[]
@Autowired
private WebApplicationContext context;