aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-07-01 17:45:56 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-07-01 17:46:04 +0200
commitb34de6cbb17ae0f15c5ddc19573e0c8704ac564c (patch)
tree19c3a56918d9f7fcffe5dcc1afc60292a8d7d062 /sonar-plugin-api
parent0fa2a818b9614e4cd555a4816622e2f4ef45d16d (diff)
downloadsonarqube-b34de6cbb17ae0f15c5ddc19573e0c8704ac564c.tar.gz
sonarqube-b34de6cbb17ae0f15c5ddc19573e0c8704ac564c.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/utils/PathUtilsTest.java2
1 files changed, 1 insertions, 1 deletions
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