aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api/config
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-20 00:43:47 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-20 00:45:34 +0200
commit2f779df51e9da5b07ad6f837fe1c98eab9fbf439 (patch)
treed2be9202eb947ecb005c72368bbcb4f1b86e8e68 /sonar-plugin-api/src/test/java/org/sonar/api/config
parent24ec2501f751dc2a122f1e5f905ee4151ec8b891 (diff)
downloadsonarqube-2f779df51e9da5b07ad6f837fe1c98eab9fbf439.tar.gz
sonarqube-2f779df51e9da5b07ad6f837fe1c98eab9fbf439.zip
Upgrade hamcrest and fix conflicts with JUnit and Mockito
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/config')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/AesCipherTest.java6
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/EncryptionTest.java2
2 files changed, 5 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/AesCipherTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/AesCipherTest.java
index 6e279661bd3..7631b6b9b85 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/AesCipherTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/AesCipherTest.java
@@ -34,7 +34,9 @@ import java.security.InvalidKeyException;
import java.security.Key;
import static org.hamcrest.Matchers.greaterThan;
+import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.core.Is.is;
+import static org.hamcrest.core.Is.isA;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
@@ -94,7 +96,7 @@ public class AesCipherTest {
fail();
} catch (RuntimeException e) {
- assertThat(e.getCause(), is(InvalidKeyException.class));
+ assertThat(e.getCause(), instanceOf(InvalidKeyException.class));
}
}
@@ -109,7 +111,7 @@ public class AesCipherTest {
fail();
} catch (RuntimeException e) {
- assertThat(e.getCause(), is(BadPaddingException.class));
+ assertThat(e.getCause(), instanceOf(BadPaddingException.class));
}
}
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/EncryptionTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/EncryptionTest.java
index 6473578f6ae..265a7cc4f2d 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/EncryptionTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/EncryptionTest.java
@@ -21,7 +21,7 @@ package org.sonar.api.config;
import org.junit.Test;
-import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class EncryptionTest {