diff --git a/json-path/pom.xml b/json-path/pom.xml index 8f06999d..384c1668 100644 --- a/json-path/pom.xml +++ b/json-path/pom.xml @@ -60,6 +60,13 @@ junit test + + + commons-io + commons-io + test + + diff --git a/json-path/src/test/java/com/jayway/jsonpath/HttpProviderTest.java b/json-path/src/test/java/com/jayway/jsonpath/HttpProviderTest.java index 1b732ef6..5e238637 100644 --- a/json-path/src/test/java/com/jayway/jsonpath/HttpProviderTest.java +++ b/json-path/src/test/java/com/jayway/jsonpath/HttpProviderTest.java @@ -33,7 +33,7 @@ public class HttpProviderTest { try { inputStream = HttpProviderFactory.getProvider().get(url); - byte[] bytes = sun.misc.IOUtils.readFully(inputStream, -1, true); + byte[] bytes = org.apache.commons.io.IOUtils.toByteArray(inputStream); String json = new String(bytes).trim(); diff --git a/pom.xml b/pom.xml index 6fad2e95..02a44189 100644 --- a/pom.xml +++ b/pom.xml @@ -245,6 +245,13 @@ 4.10 test + + + commons-io + commons-io + 2.4 + test + \ No newline at end of file