aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-25 10:15:23 +0200
committerDavid Gageot <david@gageot.net>2012-05-25 11:17:22 +0200
commit2f751bd1fa0fc9202f73d3ba165af02182e17b0c (patch)
treed1c4dab703f3b62a86503ef5dc154997faa4ebae /plugins
parent06d5b65b5ef22119ee9e48216c211bbb8832c53e (diff)
downloadsonarqube-2f751bd1fa0fc9202f73d3ba165af02182e17b0c.tar.gz
sonarqube-2f751bd1fa0fc9202f73d3ba165af02182e17b0c.zip
Suppress warnings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/FileSystemLoaderTest.java16
-rw-r--r--plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/JarLoaderTest.java3
2 files changed, 10 insertions, 9 deletions
diff --git a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/FileSystemLoaderTest.java b/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/FileSystemLoaderTest.java
index 58ed17a4c35..0af8f175232 100644
--- a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/FileSystemLoaderTest.java
+++ b/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/FileSystemLoaderTest.java
@@ -19,20 +19,19 @@
*/
package org.sonar.java.bytecode.loader;
+import org.junit.Test;
+import org.sonar.java.ast.SquidTestUtils;
+
+import java.io.File;
+import java.net.URL;
+
import static org.hamcrest.CoreMatchers.nullValue;
-import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
-import java.io.File;
-import java.net.URL;
-
-import org.junit.Test;
-import org.sonar.java.ast.SquidTestUtils;
-
public class FileSystemLoaderTest {
@Test(expected = IllegalArgumentException.class)
@@ -49,7 +48,8 @@ public class FileSystemLoaderTest {
URL url = loader.findResource("tags/TagName.class");
assertThat(url, notNullValue());
- assertThat(url.toString(), allOf(startsWith("file:"), endsWith("TagName.class")));
+ assertThat(url.toString(), startsWith("file:"));
+ assertThat(url.toString(), endsWith("TagName.class"));
loader.close();
diff --git a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/JarLoaderTest.java b/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/JarLoaderTest.java
index 424cea52fa0..3b21c63cd35 100644
--- a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/JarLoaderTest.java
+++ b/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/loader/JarLoaderTest.java
@@ -49,7 +49,8 @@ public class JarLoaderTest {
URL url = loader.findResource("META-INF/MANIFEST.MF");
assertThat(url, notNullValue());
- assertThat(url.toString(), allOf(startsWith("jar:"), endsWith("hello.jar!/META-INF/MANIFEST.MF")));
+ assertThat(url.toString(), startsWith("jar:"));
+ assertThat(url.toString(), endsWith("hello.jar!/META-INF/MANIFEST.MF"));
InputStream is = url.openStream();
try {