diff options
author | Harald Musum <musum@verizonmedia.com> | 2020-01-08 08:20:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 08:20:13 +0100 |
commit | 5489a01db126d4ae6c25bc4a84ff5f2cfd4e5123 (patch) | |
tree | dc8ec40545c495f99cb2488fbd06642769d67cf7 /vespa-testrunner-components | |
parent | ac86bb091d01e6299d6f3e88c531d1cd6903474d (diff) |
Revert "Bjorncs/apache commons libraries cleanup"
Diffstat (limited to 'vespa-testrunner-components')
-rw-r--r-- | vespa-testrunner-components/pom.xml | 5 | ||||
-rw-r--r-- | vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/PomXmlGeneratorTest.java | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/vespa-testrunner-components/pom.xml b/vespa-testrunner-components/pom.xml index 31568d01fb5..7c9b8aa99f1 100644 --- a/vespa-testrunner-components/pom.xml +++ b/vespa-testrunner-components/pom.xml @@ -34,6 +34,11 @@ <artifactId>junit</artifactId> <scope>test</scope> </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <scope>test</scope> + </dependency> </dependencies> <build> diff --git a/vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/PomXmlGeneratorTest.java b/vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/PomXmlGeneratorTest.java index c7799bff116..ca3da385dfe 100644 --- a/vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/PomXmlGeneratorTest.java +++ b/vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/PomXmlGeneratorTest.java @@ -1,6 +1,7 @@ // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.testrunner; +import org.apache.commons.io.IOUtils; import org.junit.Test; import java.io.IOException; @@ -27,7 +28,7 @@ public class PomXmlGeneratorTest { } private void assertFile(String resourceFile, String actual) throws IOException { - String expected = new String(this.getClass().getResourceAsStream(resourceFile).readAllBytes()); + String expected = IOUtils.toString(this.getClass().getResourceAsStream(resourceFile)); assertEquals(resourceFile, expected, actual); } |