diff --git a/pom.xml b/pom.xml index 8bd2da85d8f1f6bb6f2032c0a6ede3c3a8b8211e..b331bf5252ca5f84aa6ad61cf7aab171edeb257f 100644 --- a/pom.xml +++ b/pom.xml @@ -136,12 +136,6 @@ 4.11 test - - org.skyscreamer - jsonassert - 1.2.3 - test - diff --git a/src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java b/src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java index dc12ec28de2e7f129a34f26d48357d701e917897..24a308850a3022f2cd113994cc814d1084d101e3 100644 --- a/src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java +++ b/src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java @@ -11,7 +11,6 @@ import org.codehaus.jackson.JsonParseException; import org.codehaus.jackson.map.JsonMappingException; import org.codehaus.jackson.map.ObjectMapper; import org.codehaus.jackson.type.TypeReference; -import org.json.JSONException; import org.junit.BeforeClass; import org.junit.Test; @@ -257,7 +256,7 @@ public class TestGitLabApiBeans { return (objectMapper.readValue(reader, returnType)); } - private boolean compareJson (T apiObject, String file) throws IOException, JSONException { + private boolean compareJson (T apiObject, String file) throws IOException { InputStreamReader reader = new InputStreamReader(GitLabApi.class.getResourceAsStream(file + ".json")); String objectJson = jacksonJson.marshal(apiObject); diff --git a/src/test/java/com/messners/gitlab/api/TestGitLabApiEvents.java b/src/test/java/com/messners/gitlab/api/TestGitLabApiEvents.java index 9d58fb4f673d6dbefe0ef22042c8c79003c83804..3ed30e2a4bfef67cfb47b66b38063bfc19e35258 100644 --- a/src/test/java/com/messners/gitlab/api/TestGitLabApiEvents.java +++ b/src/test/java/com/messners/gitlab/api/TestGitLabApiEvents.java @@ -9,7 +9,6 @@ import org.codehaus.jackson.JsonNode; import org.codehaus.jackson.JsonParseException; import org.codehaus.jackson.map.JsonMappingException; import org.codehaus.jackson.map.ObjectMapper; -import org.json.JSONException; import org.junit.BeforeClass; import org.junit.Test; @@ -69,7 +68,7 @@ public class TestGitLabApiEvents { return (objectMapper.readValue(reader, returnType)); } - private boolean compareJson (T apiObject, String file) throws IOException, JSONException { + private boolean compareJson (T apiObject, String file) throws IOException { InputStreamReader reader = new InputStreamReader(GitLabApi.class.getResourceAsStream(file + ".json")); String objectJson = jacksonJson.marshal(apiObject);