diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-04-23 20:29:35 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-04-23 20:29:35 +0200 |
commit | 6a565e856b3041aff353a1fb7d896fe5487e5b61 (patch) | |
tree | 0f2ae35a89f89e396505dd6e207fb45df2436d50 /sonar-testing-harness | |
parent | ebad62de4864fa13b8f30e766cc6501e3b5ac04f (diff) | |
download | sonarqube-6a565e856b3041aff353a1fb7d896fe5487e5b61.tar.gz sonarqube-6a565e856b3041aff353a1fb7d896fe5487e5b61.zip |
Remove some usage of TestUtils
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 |