replace usage of restricted class sun.misc.IOUtils
@ -61,6 +61,13 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</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>2.4</version>
</dependencyManagement>
</project>