diff options
Diffstat (limited to 'sonar-testing-harness')
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java b/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java index eedcee75337..e537466d262 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java +++ b/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java @@ -19,14 +19,10 @@ */ package org.sonar.test; -import org.apache.commons.io.Charsets; import org.apache.commons.io.FileUtils; -import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; -import org.sonar.api.utils.SonarException; import java.io.File; -import java.io.IOException; import java.net.URL; /** @@ -57,19 +53,6 @@ public final class TestUtils { return null; } - public static String getResourceContent(String path) { - URL url = TestUtils.class.getResource(path); - if (url == null) { - return null; - } - - try { - return IOUtils.toString(url, Charsets.UTF_8); - } catch (IOException e) { - throw new SonarException("Can not load the resource: " + path, e); - } - } - /** * Search for a resource in the classpath. For example calling the method getResource(getClass(), "myTestName/foo.txt") from * the class org.sonar.Foo loads the file $basedir/src/test/resources/org/sonar/Foo/myTestName/foo.txt |