Skip to content

Removes jackson-utils dependency. #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 6, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Uses Arrays.asList method to create a list of known objects.
  • Loading branch information
Alex Soto committed Dec 4, 2014
commit ed5f7464138bb62e6ba1de0555e259c9ea44445e
9 changes: 3 additions & 6 deletions src/test/java/com/github/fge/jsonpatch/JsonPatchTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import static org.mockito.Mockito.*;
Expand Down Expand Up @@ -91,9 +92,7 @@ public void operationsAreCalledInOrder()

when(op1.apply(node1)).thenReturn(node2);

List<JsonPatchOperation> jsonPatchOperationList = new ArrayList<JsonPatchOperation>();
jsonPatchOperationList.add(op1);
jsonPatchOperationList.add(op2);
List<JsonPatchOperation> jsonPatchOperationList = Arrays.asList(op1, op2);
final JsonPatch patch = new JsonPatch(jsonPatchOperationList);

final ArgumentCaptor<JsonNode> captor
Expand All @@ -114,9 +113,7 @@ public void whenOneOperationFailsNextOperationIsNotCalled()
when(op1.apply(any(JsonNode.class)))
.thenThrow(new JsonPatchException(message));

List<JsonPatchOperation> jsonPatchOperationList = new ArrayList<JsonPatchOperation>();
jsonPatchOperationList.add(op1);
jsonPatchOperationList.add(op2);
List<JsonPatchOperation> jsonPatchOperationList = Arrays.asList(op1, op2);
final JsonPatch patch = new JsonPatch(jsonPatchOperationList);

try {
Expand Down