diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-20 09:22:28 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-20 09:22:28 +0200 |
commit | 5b06f60c16dc8eb52d0d02b38b64aafd9c4d0b2e (patch) | |
tree | a9695a94be9c9231ca63295b5f76202d80653aa4 /sonar-plugin-api | |
parent | 867d184f3f44f87a1f2941621d0fd4cd891b3bb5 (diff) | |
download | sonarqube-5b06f60c16dc8eb52d0d02b38b64aafd9c4d0b2e.tar.gz sonarqube-5b06f60c16dc8eb52d0d02b38b64aafd9c4d0b2e.zip |
Fic compatibility of hamcrest with java 6
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java | 5 | ||||
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtils2Test.java | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java index ea63a12f5f9..b9265129605 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java @@ -27,7 +27,6 @@ import java.io.File; import java.util.List; import java.util.Properties; -import org.hamcrest.CoreMatchers; import org.junit.Test; import org.sonar.api.CoreProperties; @@ -137,8 +136,8 @@ public class ProjectDefinitionTest { def.addBinaryDir(new File("target/classes")); assertThat(def.getSourceDirs().size(), is(2)); - assertThat(def.getTestDirs().size(), CoreMatchers.is(2)); - assertThat(def.getBinaries().size(), CoreMatchers.is(1)); + assertThat(def.getTestDirs().size(), is(2)); + assertThat(def.getBinaries().size(), is(1)); } @Test diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtils2Test.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtils2Test.java index 1a18c2e77b6..c41f6856076 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtils2Test.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtils2Test.java @@ -26,8 +26,8 @@ import org.junit.Test; import java.lang.reflect.Field; import java.util.List; +import static org.hamcrest.Matchers.hasItem; import static org.junit.Assert.assertThat; -import static org.junit.matchers.JUnitMatchers.hasItem; public class FieldUtils2Test { |