diff options
author | Godin <mandrikov@gmail.com> | 2010-10-25 15:32:18 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-10-25 15:32:18 +0000 |
commit | d5bb7540815c5858b1cfc319dbcea6def500fad5 (patch) | |
tree | 3d3b28fc5cc5ff7c2711bf325e3651df0b40cf50 /plugins | |
parent | 191b5b45dbcb54ec71814ed617da6f2948c5c3a4 (diff) | |
download | sonarqube-d5bb7540815c5858b1cfc319dbcea6def500fad5.tar.gz sonarqube-d5bb7540815c5858b1cfc319dbcea6def500fad5.zip |
SONAR-1832: Fix unit test
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/check/ArchitectureCheckTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/check/ArchitectureCheckTest.java b/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/check/ArchitectureCheckTest.java index e9464bca524..1a93c99244b 100644 --- a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/check/ArchitectureCheckTest.java +++ b/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/java/bytecode/check/ArchitectureCheckTest.java @@ -19,10 +19,6 @@ */ package org.sonar.java.bytecode.check; -import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.is; -import static org.sonar.java.ast.SquidTestUtils.getFile; - import org.junit.Test; import org.sonar.java.ast.JavaAstScanner; import org.sonar.java.bytecode.BytecodeScanner; @@ -31,6 +27,10 @@ import org.sonar.squid.Squid; import org.sonar.squid.api.CheckMessage; import org.sonar.squid.api.SourceFile; +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.is; +import static org.sonar.java.ast.SquidTestUtils.getFile; + public class ArchitectureCheckTest { private Squid squid; @@ -42,7 +42,7 @@ public class ArchitectureCheckTest { SourceFile file = (SourceFile) squid.search("ArchitectureCheckOneErrorMessage.java"); assertThat(file.getCheckMessages().size(), is(1)); CheckMessage message = file.getCheckMessages().iterator().next(); - assertThat(message.getDefaultMessage(), is("Architecture constraint : ArchitectureCheckOneErrorMessage must not use java/util/regex/Pattern")); + assertThat(message.getDefaultMessage(), is("ArchitectureCheckOneErrorMessage must not use java/util/regex/Pattern")); assertThat(message.getLine(), is(6)); } |