aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/resources/org/sonar
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-08 19:22:18 +0000
committerGodin <mandrikov@gmail.com>2010-12-08 19:22:18 +0000
commit85ad745aaee19225e0abbb11abd167e39a8b1e95 (patch)
tree37139954f8e33512388964ae4f4059666745c5cf /sonar-plugin-api/src/test/resources/org/sonar
parente3b4152afad73825c08a72c7e17432fb97638970 (diff)
downloadsonarqube-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')
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileParserTest/importProfileWithAlerts.xml21
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileSerializerTest/exportAlerts.xml14
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>&gt;</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>&lt;</operator>
+ <error>60</error>
+ <warning>80</warning>
+ </alert>
+ </alerts>
+</profile> \ No newline at end of file