Merge branch '1.0.x'

This commit is contained in:
Andy Wilkinson
2016-05-05 09:53:30 +01:00
14 changed files with 80 additions and 81 deletions

View File

@@ -266,9 +266,8 @@ public class MockMvcRestDocumentationIntegrationTests {
mockMvc.perform(get("/").param("foo", "bar").accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andDo(document("links",
responseFields(fieldWithPath("a")
.description("The description"),
.andDo(document("links", responseFields(
fieldWithPath("a").description("The description"),
fieldWithPath("links").description("Links to other resources"))));
assertExpectedSnippetFilesExist(new File("build/generated-snippets/links"),