summaryrefslogtreecommitdiffstats
path: root/vespa-testrunner-components/src
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-testrunner-components/src')
-rw-r--r--vespa-testrunner-components/src/test/java/com/yahoo/vespa/hosted/testrunner/PomXmlGeneratorTest.java3
1 files changed, 2 insertions, 1 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 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);
}