diff options
author | Godin <mandrikov@gmail.com> | 2010-12-07 16:12:03 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-07 16:12:03 +0000 |
commit | c1cfffea2098a53ab078deb9bebe47b627c389cf (patch) | |
tree | 7333070e02e4504ed48e8d550a6ae8de86b5de6a /plugins/sonar-checkstyle-plugin/src/test | |
parent | b09f170fa5cd8980019d6cf91251ab11970b1cc6 (diff) | |
download | sonarqube-c1cfffea2098a53ab078deb9bebe47b627c389cf.tar.gz sonarqube-c1cfffea2098a53ab078deb9bebe47b627c389cf.zip |
SONAR-1829: Use severity instead of priority
Diffstat (limited to 'plugins/sonar-checkstyle-plugin/src/test')
-rw-r--r-- | plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporterTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporterTest.java b/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporterTest.java index 330698acc3a..f3d4a41c1ff 100644 --- a/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporterTest.java +++ b/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporterTest.java @@ -88,7 +88,7 @@ public class CheckstyleProfileImporterTest { RulesProfile profile = importer.importProfile(reader, messages); ActiveRule javadocCheck = profile.getActiveRuleByConfigKey("checkstyle", "Checker/JavadocPackage"); - assertThat(javadocCheck.getPriority(), is(RulePriority.BLOCKER)); + assertThat(javadocCheck.getSeverity(), is(RulePriority.BLOCKER)); } @Test @@ -97,7 +97,7 @@ public class CheckstyleProfileImporterTest { RulesProfile profile = importer.importProfile(reader, messages); ActiveRule activeRule = profile.getActiveRuleByConfigKey("checkstyle", "Checker/TreeWalker/EqualsHashCode"); - assertThat(activeRule.getPriority(), is(RulePriority.BLOCKER)); // reuse the rule default priority + assertThat(activeRule.getSeverity(), is(RulePriority.BLOCKER)); // reuse the rule default priority } @Test |