diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-11 12:14:57 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-11 12:14:57 +0100 |
commit | 94c5097a927988dc43d47b95f5963c3d8e1a06a3 (patch) | |
tree | a453d2dfac4e8a8ccb5a17afabb2a39921001594 /sonar-plugin-api/src/test/java/org/sonar | |
parent | 887511087786db6ad4e338ec31822fd21bd39848 (diff) | |
download | sonarqube-94c5097a927988dc43d47b95f5963c3d8e1a06a3.tar.gz sonarqube-94c5097a927988dc43d47b95f5963c3d8e1a06a3.zip |
SONAR-4170 Add language property on rule in order to track removed rules from removed plugin
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/rules/XMLRuleParserTest.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/rules/XMLRuleParserTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/rules/XMLRuleParserTest.java index c683949ef55..e901d88a3b1 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/rules/XMLRuleParserTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/rules/XMLRuleParserTest.java @@ -123,20 +123,15 @@ public class XMLRuleParserTest { assertThat(rule.getParam("minMethodsCount"), not(nullValue())); } - @Test(expected = SonarException.class) - public void should_fail_if_status_is_unknown() { - new XMLRuleParser().parse(new StringReader("<rules><rule><key>foo</key><name>Foo</name><status>UNKNOWN</status></rule></rules>")); - } - @Test public void should_read_rule_status() { List<Rule> rules = new XMLRuleParser().parse(new StringReader( "<rules>"+ - "<rule><key>foo</key><status>NORMAL</status></rule>"+ + "<rule><key>foo</key><status>READY</status></rule>"+ "<rule><key>foo</key><status>BETA</status></rule>"+ "<rule><key>foo</key><status>DEPRECATED</status></rule>"+ "</rules>")); - assertThat(rules.get(0).getStatus(), is(Status.NORMAL.name())); + assertThat(rules.get(0).getStatus(), is(Status.READY.name())); assertThat(rules.get(1).getStatus(), is(Status.BETA.name())); assertThat(rules.get(2).getStatus(), is(Status.DEPRECATED.name())); } |