diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 17:45:56 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 17:46:04 +0200 |
commit | b34de6cbb17ae0f15c5ddc19573e0c8704ac564c (patch) | |
tree | 19c3a56918d9f7fcffe5dcc1afc60292a8d7d062 /sonar-plugin-api | |
parent | 0fa2a818b9614e4cd555a4816622e2f4ef45d16d (diff) | |
download | sonarqube-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.java | 2 |
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 |