diff options
author | Godin <mandrikov@gmail.com> | 2010-12-09 09:26:15 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-09 09:26:15 +0000 |
commit | 43338cdc403db95555e7f46672729f4c72abb903 (patch) | |
tree | 7c681d6d59956f6e1499519b3dc73af994d227a1 /sonar-plugin-api | |
parent | 8ea838b32e45f4fb08d1ac3aa8d480a2e0cef7af (diff) | |
download | sonarqube-43338cdc403db95555e7f46672729f4c72abb903.tar.gz sonarqube-43338cdc403db95555e7f46672729f4c72abb903.zip |
Minor change
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/profiles/XMLProfileSerializerTest.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/XMLProfileSerializerTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/XMLProfileSerializerTest.java index bc7a9aa35d9..23df4ead208 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/XMLProfileSerializerTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/XMLProfileSerializerTest.java @@ -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); |