DATAREST-787 - Remove dependency to JSON Patch library.

Switched to own JSON Patch implementation built by Craig Walls for Spring Sync back in the days.
This commit is contained in:
Oliver Gierke
2015-09-30 20:47:09 -04:00
parent 6075f3052a
commit 4430e78966
31 changed files with 1932 additions and 78 deletions

View File

@@ -20,6 +20,7 @@ import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import static org.springframework.data.rest.tests.mongodb.TestUtils.*;
import java.util.ArrayList;
import java.util.Arrays;
import org.junit.Before;
@@ -119,7 +120,7 @@ public class JsonPatchHandlerUnitTests {
User christoph = new User();
christoph.firstname = "Christoph";
this.user.colleagues = Arrays.asList(thomas, christoph);
this.user.colleagues = new ArrayList<User>(Arrays.asList(thomas, christoph));
String input = "[{ \"op\": \"remove\", \"path\": \"/colleagues/0\" }]";