Update the samples to align with recent API changes

This commit is contained in:
Andy Wilkinson
2015-08-19 17:25:56 +01:00
parent 4199a21bfd
commit 32bb724a3d
2 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.hateoas.MediaTypes;
import org.springframework.restdocs.payload.FieldType;
import org.springframework.restdocs.payload.JsonFieldType;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
@@ -279,8 +279,8 @@ public class ApiDocumentation {
.andExpect(status().isNoContent())
.andDo(document("note-update-example",
requestFields(
fieldWithPath("title").description("The title of the note").type(FieldType.STRING).optional(),
fieldWithPath("body").description("The body of the note").type(FieldType.STRING).optional(),
fieldWithPath("title").description("The title of the note").type(JsonFieldType.STRING).optional(),
fieldWithPath("body").description("The body of the note").type(JsonFieldType.STRING).optional(),
fieldWithPath("tags").description("An array of tag resource URIs").optional())));
}