From dd2f94790fbaa45326f199c7b8fc5fd18919c929 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Mon, 12 Sep 2016 13:00:48 +0200 Subject: [PATCH] DATAREST-885 - Polishing. Original pull request: #226. --- .../data/rest/webmvc/json/patch/JsonPatchTests.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchTests.java index d2b063e7f..15cebdb1c 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/patch/JsonPatchTests.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; * @author Craig Walls * @author Oliver Gierke * @author Mathias Düsterhöft + * @author Oliver Trosien */ public class JsonPatchTests { @@ -115,15 +116,19 @@ public class JsonPatchTests { assertEquals("F", todos.get(5).getDescription()); } + /** + * @see DATAREST-885 + */ @Test public void patchArray() throws Exception { + Todo todo = new Todo(1L, "F", false); Patch patch = readJsonPatch("patch-array.json"); assertEquals(1, patch.size()); Todo patchedTodo = patch.apply(todo, Todo.class); - assertEquals(Arrays.asList("one","two","three"), patchedTodo.getItems()); + assertEquals(Arrays.asList("one", "two", "three"), patchedTodo.getItems()); } private Patch readJsonPatch(String jsonPatchFile) throws IOException, JsonParseException, JsonMappingException {