diff options
author | Godin <mandrikov@gmail.com> | 2010-12-07 16:02:48 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-07 16:02:48 +0000 |
commit | b09f170fa5cd8980019d6cf91251ab11970b1cc6 (patch) | |
tree | 4fbf596dfeb13b56fec587d49c404de977264642 /sonar-plugin-api/src/test/java/org/sonar/api/profiles/RulesProfileTest.java | |
parent | 8e9d7ff89a66bf987d7fcb7c298a53a992625375 (diff) | |
download | sonarqube-b09f170fa5cd8980019d6cf91251ab11970b1cc6.tar.gz sonarqube-b09f170fa5cd8980019d6cf91251ab11970b1cc6.zip |
SONAR-1829: Use severity instead of priority
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/profiles/RulesProfileTest.java')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/profiles/RulesProfileTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/RulesProfileTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/RulesProfileTest.java index 3f36241a437..0e54a3a824d 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/RulesProfileTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/RulesProfileTest.java @@ -42,16 +42,16 @@ public class RulesProfileTest { @Test public void activateRuleWithDefaultPriority() { RulesProfile profile = RulesProfile.create(); - Rule rule = Rule.create("repo", "key1", "name1").setPriority(RulePriority.CRITICAL); + Rule rule = Rule.create("repo", "key1", "name1").setSeverity(RulePriority.CRITICAL); profile.activateRule(rule, null); - assertThat(profile.getActiveRule("repo", "key1").getPriority(), is(RulePriority.CRITICAL)); + assertThat(profile.getActiveRule("repo", "key1").getSeverity(), is(RulePriority.CRITICAL)); } @Test public void activateRuleWithSpecificPriority() { RulesProfile profile = RulesProfile.create(); - Rule rule = Rule.create("repo", "key1", "name1").setPriority(RulePriority.CRITICAL); + Rule rule = Rule.create("repo", "key1", "name1").setSeverity(RulePriority.CRITICAL); profile.activateRule(rule, RulePriority.MINOR); - assertThat(profile.getActiveRule("repo", "key1").getPriority(), is(RulePriority.MINOR)); + assertThat(profile.getActiveRule("repo", "key1").getSeverity(), is(RulePriority.MINOR)); } } |