diff options
author | Godin <mandrikov@gmail.com> | 2010-12-08 19:22:18 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-08 19:22:18 +0000 |
commit | 85ad745aaee19225e0abbb11abd167e39a8b1e95 (patch) | |
tree | 37139954f8e33512388964ae4f4059666745c5cf /sonar-plugin-api/src/test/resources/org/sonar | |
parent | e3b4152afad73825c08a72c7e17432fb97638970 (diff) | |
download | sonarqube-85ad745aaee19225e0abbb11abd167e39a8b1e95.tar.gz sonarqube-85ad745aaee19225e0abbb11abd167e39a8b1e95.zip |
SONAR-1809: Export / import alerts attached to a quality profile
Diffstat (limited to 'sonar-plugin-api/src/test/resources/org/sonar')
2 files changed, 35 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileParserTest/importProfileWithAlerts.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileParserTest/importProfileWithAlerts.xml new file mode 100644 index 00000000000..3a34a304562 --- /dev/null +++ b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileParserTest/importProfileWithAlerts.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated by Sonar --> +<profile> + <name>sonar way</name> + <language>java</language> + <rules> + <rule> + <repositoryKey>checkstyle</repositoryKey> + <key>IllegalRegexp</key> + <priority>CRITICAL</priority> + </rule> + </rules> + <alerts> + <alert> + <metric>complexity</metric> + <operator>></operator> + <error>12</error> + <warning>10</warning> + </alert> + </alerts> +</profile>
\ No newline at end of file diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileSerializerTest/exportAlerts.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileSerializerTest/exportAlerts.xml new file mode 100644 index 00000000000..1a1859836c8 --- /dev/null +++ b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileSerializerTest/exportAlerts.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated by Sonar --> +<profile> + <name>sonar way</name> + <language>java</language> + <alerts> + <alert> + <metric>coverage</metric> + <operator><</operator> + <error>60</error> + <warning>80</warning> + </alert> + </alerts> +</profile>
\ No newline at end of file |