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:
@@ -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\" }]";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user