aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated/src
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-07 16:12:03 +0000
committerGodin <mandrikov@gmail.com>2010-12-07 16:12:03 +0000
commitc1cfffea2098a53ab078deb9bebe47b627c389cf (patch)
tree7333070e02e4504ed48e8d550a6ae8de86b5de6a /sonar-deprecated/src
parentb09f170fa5cd8980019d6cf91251ab11970b1cc6 (diff)
downloadsonarqube-c1cfffea2098a53ab078deb9bebe47b627c389cf.tar.gz
sonarqube-c1cfffea2098a53ab078deb9bebe47b627c389cf.zip
SONAR-1829: Use severity instead of priority
Diffstat (limited to 'sonar-deprecated/src')
-rw-r--r--sonar-deprecated/src/test/java/org/sonar/api/rules/StandardProfileXmlParserTest.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/sonar-deprecated/src/test/java/org/sonar/api/rules/StandardProfileXmlParserTest.java b/sonar-deprecated/src/test/java/org/sonar/api/rules/StandardProfileXmlParserTest.java
index 2f20bd096ca..586961d0dca 100644
--- a/sonar-deprecated/src/test/java/org/sonar/api/rules/StandardProfileXmlParserTest.java
+++ b/sonar-deprecated/src/test/java/org/sonar/api/rules/StandardProfileXmlParserTest.java
@@ -20,9 +20,6 @@
package org.sonar.api.rules;
import org.apache.commons.io.IOUtils;
-import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.*;
-
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Test;
@@ -37,6 +34,12 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertTrue;
+
public class StandardProfileXmlParserTest {
@Test
@@ -136,7 +139,6 @@ public class StandardProfileXmlParserTest {
return rules;
}
-
private List<ActiveRule> buildActiveRulesFixture(List<Rule> rules) {
List<ActiveRule> activeRules = new ArrayList<ActiveRule>();
@@ -157,7 +159,7 @@ public class StandardProfileXmlParserTest {
for (int i = 0; i < activeRules1.size(); i++) {
ActiveRule activeRule1 = activeRules1.get(i);
ActiveRule activeRule2 = activeRules2.get(i);
- assertTrue(activeRule1.getRule().equals(activeRule2.getRule()) && activeRule1.getPriority().equals(activeRule2.getPriority()));
+ assertTrue(activeRule1.getRule().equals(activeRule2.getRule()) && activeRule1.getSeverity().equals(activeRule2.getSeverity()));
Assert.assertEquals(activeRule1.getActiveRuleParams().size(), (activeRule2.getActiveRuleParams().size()));
for (int j = 0; j < activeRule1.getActiveRuleParams().size(); j++) {
@@ -169,4 +171,4 @@ public class StandardProfileXmlParserTest {
}
}
-} \ No newline at end of file
+}