]> source.dussan.org Git - sonarqube.git/commitdiff
Minor change
authorGodin <mandrikov@gmail.com>
Thu, 9 Dec 2010 09:26:15 +0000 (09:26 +0000)
committerGodin <mandrikov@gmail.com>
Thu, 9 Dec 2010 09:26:15 +0000 (09:26 +0000)
sonar-plugin-api/src/test/java/org/sonar/api/profiles/XMLProfileSerializerTest.java

index bc7a9aa35d924f6d126427c1ff878675e4c0c1fe..23df4ead208e152d3ca084d016a9ce7faab55882 100644 (file)
@@ -80,11 +80,7 @@ public class XMLProfileSerializerTest {
   public void exportAlerts() throws Exception {
     Writer writer = new StringWriter();
     RulesProfile profile = RulesProfile.create("sonar way", "java");
-    Alert alert = new Alert();
-    alert.setMetric(new Metric("coverage"));
-    alert.setOperator(Alert.OPERATOR_SMALLER);
-    alert.setValueError("60");
-    alert.setValueWarning("80");
+    Alert alert = new Alert(profile, new Metric("coverage"), Alert.OPERATOR_SMALLER, "60", "80");
     profile.getAlerts().add(alert);
     new XMLProfileSerializer().write(profile, writer);