@ -60,6 +60,13 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
</dependencies>
@ -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();
@ -245,6 +245,13 @@
<version>4.10</version>
<version>1.3.2</version>
</dependencyManagement>
</project>