From 6a565e856b3041aff353a1fb7d896fe5487e5b61 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 23 Apr 2014 20:29:35 +0200 Subject: Remove some usage of TestUtils --- .../src/main/java/org/sonar/test/TestUtils.java | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'sonar-testing-harness/src/main') 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 -- cgit v1.2.3