diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-11 20:33:04 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-11 20:33:04 +0000 |
commit | 4400a7bd8870b92293ffd446db12fa52c116433c (patch) | |
tree | c3770bed9774eae8497e18c21eb46a946b141b54 /sonar-plugin-api/src/test/java | |
parent | 0a78a550a77d1968ce2c867285b1c85ef57b2eda (diff) | |
download | sonarqube-4400a7bd8870b92293ffd446db12fa52c116433c.tar.gz sonarqube-4400a7bd8870b92293ffd446db12fa52c116433c.zip |
fix build compatibility with Java 1.5
Diffstat (limited to 'sonar-plugin-api/src/test/java')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/rules/XMLRuleParserTest.java | 3 |
1 files changed, 2 insertions, 1 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 df56311968a..c444fdda875 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 @@ -22,6 +22,7 @@ package org.sonar.api.rules; import org.hamcrest.core.Is; import org.junit.Test; import org.sonar.api.utils.SonarException; +import org.sonar.check.Cardinality; import java.io.StringReader; import java.util.List; @@ -42,7 +43,7 @@ public class XMLRuleParserTest { assertThat(rule.getName(), is("Local Variable Name")); assertThat(rule.getDescription(), is("Checks that local, non-final variable names conform to a format specified by the format property.")); assertThat(rule.getPriority(), Is.is(RulePriority.BLOCKER)); - assertThat(rule.getCardinality(), Is.is(org.sonar.check.Rule.CARDINALITY.MULTIPLE)); + assertThat(rule.getCardinality(), Is.is(Cardinality.MULTIPLE)); assertThat(rule.getConfigKey(), is("Checker/TreeWalker/LocalVariableName")); assertThat(rule.getParams().size(), is(2)); |