From b34de6cbb17ae0f15c5ddc19573e0c8704ac564c Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 1 Jul 2014 17:45:56 +0200 Subject: Fix quality flaws --- sonar-plugin-api/src/test/java/org/sonar/api/utils/PathUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-plugin-api') diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/PathUtilsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/PathUtilsTest.java index 4ffd592d5ac..57a75e2437e 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/PathUtilsTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/PathUtilsTest.java @@ -26,7 +26,6 @@ import org.junit.rules.TemporaryFolder; import java.io.File; import java.io.IOException; -import java.lang.reflect.Method; import static org.fest.assertions.Assertions.assertThat; import static org.fest.assertions.Fail.fail; @@ -65,6 +64,7 @@ public class PathUtilsTest { File file = temp.newFile(); String path = PathUtils.canonicalPath(file); assertThat(path).isEqualTo(FilenameUtils.separatorsToUnix(file.getCanonicalPath())); + assertThat(PathUtils.canonicalPath(null)).isNull(); } @Test -- cgit v1.2.3