Commit 50ca35bd authored by Andy Wilkinson's avatar Andy Wilkinson

Remove use of deprecated API in REST Docs auto-config test

Closes gh-6128
parent 0fd7739e
......@@ -59,14 +59,12 @@ public class RestDocsAutoConfigurationAdvancedConfigurationIntegrationTests {
private MockMvc mvc;
@Autowired
private RestDocumentationResultHandler document;
private RestDocumentationResultHandler documentationHandler;
@Test
@Deprecated
public void snippetGeneration() throws Exception {
this.document.snippets(links(
linkWithRel("self").description("Canonical location of this resource")));
this.mvc.perform(get("/"));
this.mvc.perform(get("/")).andDo(this.documentationHandler.document(links(
linkWithRel("self").description("Canonical location of this resource"))));
File defaultSnippetsDir = new File(
"target/generated-snippets/snippet-generation");
assertThat(defaultSnippetsDir).exists();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment