This commit is contained in:
Phillip Webb
2016-06-08 09:27:40 -07:00
parent 6a291777da
commit 5ab072be9c
2 changed files with 14 additions and 9 deletions

View File

@@ -41,6 +41,8 @@ import static org.springframework.restdocs.hypermedia.HypermediaDocumentation.li
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
/**
* Tests for {@link AutoConfigureRestDocs}.
*
* @author Andy Wilkinson
*/
@RunWith(SpringRunner.class)
@@ -61,7 +63,7 @@ public class RestDocsAutoConfigurationAdvancedConfigurationIntegrationTests {
@Test
public void snippetGeneration() throws Exception {
this.document.snippets(links(
this.document.document(links(
linkWithRel("self").description("Canonical location of this resource")));
this.mvc.perform(get("/"));
File defaultSnippetsDir = new File(