summaryrefslogtreecommitdiffstats
path: root/vespa-testrunner-components/src/test/java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorn.christian@seime.no>2020-01-08 14:22:31 +0100
committerGitHub <noreply@github.com>2020-01-08 14:22:31 +0100
commita10c54b1a05326021c37d428a0e03117ef765380 (patch)
treefddfc08168d84b3c6615bb3285d7bcf65e9f7c3e /vespa-testrunner-components/src/test/java
parentbd1868da7bcfc5d24216596ebb3c7a8fb27f6fb8 (diff)
Revert "Revert "Bjorncs/apache commons libraries cleanup""
Diffstat (limited to 'vespa-testrunner-components/src/test/java')
-rw-r--r--vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/PomXmlGeneratorTest.java3
1 files changed, 1 insertions, 2 deletions
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 ca3da385dfe..c7799bff116 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,7 +1,6 @@
// 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;
@@ -28,7 +27,7 @@ public class PomXmlGeneratorTest {
}
private void assertFile(String resourceFile, String actual) throws IOException {
- String expected = IOUtils.toString(this.getClass().getResourceAsStream(resourceFile));
+ String expected = new String(this.getClass().getResourceAsStream(resourceFile).readAllBytes());
assertEquals(resourceFile, expected, actual);
}