aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/resources/org/sonar
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-09-06 14:08:06 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-09-06 14:08:06 +0000
commitaeadc1f9129274949daaa57738c7c4550bdfbc7b (patch)
tree08dadf5ef7474fc41d1d48f74648f1ba8b55f34d /sonar-plugin-api/src/test/resources/org/sonar
downloadsonarqube-aeadc1f9129274949daaa57738c7c4550bdfbc7b.tar.gz
sonarqube-aeadc1f9129274949daaa57738c7c4550bdfbc7b.zip
SONAR-236 remove deprecated code from checkstyle plugin + display default value of rule parameters in Q profile console
Diffstat (limited to 'sonar-plugin-api/src/test/resources/org/sonar')
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/getConfigurationFromReport.xml21
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginDependencies.xml23
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginManagementDependencies.xml25
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/mergeSettings.xml29
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overridePluginManagementSection.xml24
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersion.xml21
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersionFromPluginManagement.xml29
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/registerNewPlugin.xml8
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPom.xml25
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomPM.xml27
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomWithSourceEncoding.xml23
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenSurefireUtilsTest/MavenPom.xml20
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersion.xml22
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersionFromPluginManagement.xml24
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/checks/profiles/CheckProfileXmlMarshallerTest/profile.xml17
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles.properties6
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles_fr.properties6
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/I18nCheckWithoutDefaultLocale_fr.properties2
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/alternative/path/AlternativeBundle.properties2
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportEmptyProfile.xml5
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportProfile.xml11
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportRuleParameters.xml21
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfile.xml11
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfileWithRuleParameters.xml21
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/pom.xml7
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hidden1
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hiddendir/file_in_hidden_dir.txt1
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/foo.sql0
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/japanese-project/pom.xml26
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/pom.xml7
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.c1
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.sql1
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/pom.xml8
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Bar.java4
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Whizz.java4
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/test/java/foo/BarTest.java4
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/equalsProject/pom.xml8
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/keyContainsBranch/pom.xml11
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/deprecated.xml11
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/rules.xml39
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/utf8.xml11
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile.xml7
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile_name_null.xml6
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-dtd-test.xml5
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-xsd-test.xml6
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/sample.xml9
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/unvalid.xml3
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldUnzipFile.zipbin0 -> 578 bytes
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/bar.txt1
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/dir1/hello.properties1
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/foo.txt1
-rw-r--r--sonar-plugin-api/src/test/resources/org/sonar/api/web/AbstractRubyTemplateTest/template.erb1
52 files changed, 607 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/getConfigurationFromReport.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/getConfigurationFromReport.xml
new file mode 100644
index 00000000000..25bb3a64c1b
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/getConfigurationFromReport.xml
@@ -0,0 +1,21 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>0.9</version>
+ <configuration>
+ <foo>bar</foo>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginDependencies.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginDependencies.xml
new file mode 100644
index 00000000000..fd83ec272d4
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginDependencies.xml
@@ -0,0 +1,23 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>0.9</version>
+ <dependencies>
+ <dependency>
+ <artifactId>commons-lang</artifactId>
+ <version>2.3</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginManagementDependencies.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginManagementDependencies.xml
new file mode 100644
index 00000000000..1e5250aadfe
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/keepPluginManagementDependencies.xml
@@ -0,0 +1,25 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>0.9</version>
+ <dependencies>
+ <dependency>
+ <artifactId>commons-lang</artifactId>
+ <version>2.3</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/mergeSettings.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/mergeSettings.xml
new file mode 100644
index 00000000000..4e06eed3b23
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/mergeSettings.xml
@@ -0,0 +1,29 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>0.9</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <configuration>
+ <foo>bar</foo>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overridePluginManagementSection.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overridePluginManagementSection.xml
new file mode 100644
index 00000000000..b0627726fed
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overridePluginManagementSection.xml
@@ -0,0 +1,24 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>other</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>2.0</version>
+ </plugin>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>0.9</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersion.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersion.xml
new file mode 100644
index 00000000000..53187e02b8c
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersion.xml
@@ -0,0 +1,21 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <build>
+
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>0.9</version>
+ <configuration>
+ <foo>bar</foo>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersionFromPluginManagement.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersionFromPluginManagement.xml
new file mode 100644
index 00000000000..4e06eed3b23
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/overrideVersionFromPluginManagement.xml
@@ -0,0 +1,29 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <version>0.9</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <groupId>mygroup</groupId>
+ <artifactId>my.artifact</artifactId>
+ <configuration>
+ <foo>bar</foo>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/registerNewPlugin.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/registerNewPlugin.xml
new file mode 100644
index 00000000000..5ea792e368e
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPluginTest/registerNewPlugin.xml
@@ -0,0 +1,8 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPom.xml
new file mode 100644
index 00000000000..8da37df2821
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPom.xml
@@ -0,0 +1,25 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>ch.hortis.sonar</groupId>
+ <artifactId>sonar-core-maven-plugin</artifactId>
+ <version>0.1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomPM.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomPM.xml
new file mode 100644
index 00000000000..77ce90dd2f4
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomPM.xml
@@ -0,0 +1,27 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>ch.hortis.sonar</groupId>
+ <artifactId>sonar-core-maven-plugin</artifactId>
+ <version>0.1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomWithSourceEncoding.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomWithSourceEncoding.xml
new file mode 100644
index 00000000000..3106fec7097
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenPomWithSourceEncoding.xml
@@ -0,0 +1,23 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <properties>
+ <project.build.sourceEncoding>UTF-16</project.build.sourceEncoding>
+ </properties>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenSurefireUtilsTest/MavenPom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenSurefireUtilsTest/MavenPom.xml
new file mode 100644
index 00000000000..15defb7b33c
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenSurefireUtilsTest/MavenPom.xml
@@ -0,0 +1,20 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersion.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersion.xml
new file mode 100644
index 00000000000..3949dafe898
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersion.xml
@@ -0,0 +1,22 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.sonar.tests</groupId>
+ <artifactId>java4</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>Sonar tests - java4 syntax</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.4</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersionFromPluginManagement.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersionFromPluginManagement.xml
new file mode 100644
index 00000000000..e03f53f5980
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/batch/maven/MavenUtilsTest/getJavaVersionFromPluginManagement.xml
@@ -0,0 +1,24 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.sonar.tests</groupId>
+ <artifactId>java4</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>Sonar tests - java4 syntax</name>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.4</source>
+ <target>1.4</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ </build>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/checks/profiles/CheckProfileXmlMarshallerTest/profile.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/profiles/CheckProfileXmlMarshallerTest/profile.xml
new file mode 100644
index 00000000000..bcbba0f82ba
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/profiles/CheckProfileXmlMarshallerTest/profile.xml
@@ -0,0 +1,17 @@
+<profile>
+ <name>one</name>
+ <language>java</language>
+ <check>
+ <repository>checkstyle</repository>
+ <template>C1</template>
+ <priority>MINOR</priority>
+ <property>
+ <key>min</key>
+ <value>1</value>
+ </property>
+ <property>
+ <key>max</key>
+ <value>3</value>
+ </property>
+ </check>
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles.properties b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles.properties
new file mode 100644
index 00000000000..e1d764b21b4
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles.properties
@@ -0,0 +1,6 @@
+title: I18n Check
+description: Description in english
+property.max.title: Maximum value
+property.max.description: Description in english of the maximum value
+property.min.title: Minimum value
+property.min.description: Description in english of the minimum value \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles_fr.properties b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles_fr.properties
new file mode 100644
index 00000000000..14e2f2dbbcf
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/AnnotatedCheckWithBundles_fr.properties
@@ -0,0 +1,6 @@
+title: Règle d'internationalisation
+description: Description en Français
+property.max.title: Valeur maximale
+property.max.description: Description en Français de la valeur maximale
+property.min.title: Valeur minimale
+property.min.description: Description en Français de la valeur minimale
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/I18nCheckWithoutDefaultLocale_fr.properties b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/I18nCheckWithoutDefaultLocale_fr.properties
new file mode 100644
index 00000000000..d020f8d393b
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/I18nCheckWithoutDefaultLocale_fr.properties
@@ -0,0 +1,2 @@
+title: Titre depuis le bundle
+description: Seul le francais est disponible dans les bundles \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/alternative/path/AlternativeBundle.properties b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/alternative/path/AlternativeBundle.properties
new file mode 100644
index 00000000000..ceae9d0375d
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/checks/samples/alternative/path/AlternativeBundle.properties
@@ -0,0 +1,2 @@
+title : Alternative Path to Bundle
+description : description of Alternative Path to Bundle \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportEmptyProfile.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportEmptyProfile.xml
new file mode 100644
index 00000000000..7edbf410ba2
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportEmptyProfile.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated by Sonar -->
+<profile>
+
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportProfile.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportProfile.xml
new file mode 100644
index 00000000000..7bf8cc8017d
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportProfile.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated by Sonar -->
+<profile>
+ <rules>
+ <rule>
+ <repositoryKey>checkstyle</repositoryKey>
+ <key>IllegalRegexp</key>
+ <priority>BLOCKER</priority>
+ </rule>
+ </rules>
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportRuleParameters.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportRuleParameters.xml
new file mode 100644
index 00000000000..f635edff295
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileExporterTest/exportRuleParameters.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated by Sonar -->
+<profile>
+ <rules>
+ <rule>
+ <repositoryKey>checkstyle</repositoryKey>
+ <key>IllegalRegexp</key>
+ <priority>BLOCKER</priority>
+ <parameters>
+ <parameter>
+ <key>format</key>
+ <value>foo</value>
+ </parameter>
+ <parameter>
+ <key>message</key>
+ <value>with special characters &lt; &gt; &amp;</value>
+ </parameter>
+ </parameters>
+ </rule>
+ </rules>
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfile.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfile.xml
new file mode 100644
index 00000000000..303494eb8bb
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfile.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated by Sonar -->
+<profile>
+ <rules>
+ <rule>
+ <repositoryKey>checkstyle</repositoryKey>
+ <key>IllegalRegexp</key>
+ <priority>CRITICAL</priority>
+ </rule>
+ </rules>
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfileWithRuleParameters.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfileWithRuleParameters.xml
new file mode 100644
index 00000000000..f635edff295
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/profiles/XMLProfileImporterTest/importProfileWithRuleParameters.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated by Sonar -->
+<profile>
+ <rules>
+ <rule>
+ <repositoryKey>checkstyle</repositoryKey>
+ <key>IllegalRegexp</key>
+ <priority>BLOCKER</priority>
+ <parameters>
+ <parameter>
+ <key>format</key>
+ <value>foo</value>
+ </parameter>
+ <parameter>
+ <key>message</key>
+ <value>with special characters &lt; &gt; &amp;</value>
+ </parameter>
+ </parameters>
+ </rule>
+ </rules>
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/pom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/pom.xml
new file mode 100644
index 00000000000..f82dd82940f
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/pom.xml
@@ -0,0 +1,7 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>foo</artifactId>
+
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hidden b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hidden
new file mode 100644
index 00000000000..a0c8a07aad5
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hidden
@@ -0,0 +1 @@
+this is an hidden file \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hiddendir/file_in_hidden_dir.txt b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hiddendir/file_in_hidden_dir.txt
new file mode 100644
index 00000000000..c246937debd
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/.hiddendir/file_in_hidden_dir.txt
@@ -0,0 +1 @@
+file in hidden dir \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/foo.sql b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/foo.sql
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/hidden-files/src/main/java/foo.sql
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/japanese-project/pom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/japanese-project/pom.xml
new file mode 100644
index 00000000000..6fee0588cdb
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/japanese-project/pom.xml
@@ -0,0 +1,26 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>foo</artifactId>
+ <packaging>jar</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <encoding>Shift_JIS</encoding>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <properties>
+ <project.build.sourceEncoding>Shift_JIS</project.build.sourceEncoding>
+ </properties>
+
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/pom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/pom.xml
new file mode 100644
index 00000000000..c9de7e74d6e
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/pom.xml
@@ -0,0 +1,7 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>foo</artifactId>
+ <packaging>jar</packaging>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.c b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.c
new file mode 100644
index 00000000000..953870a6684
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.c
@@ -0,0 +1 @@
+// some C code \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.sql b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.sql
new file mode 100644
index 00000000000..72e73020ee1
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample-with-different-suffixes/src/main/java/foo.sql
@@ -0,0 +1 @@
+select * from foo; \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/pom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/pom.xml
new file mode 100644
index 00000000000..f219368e824
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/pom.xml
@@ -0,0 +1,8 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>foo</artifactId>
+ <packaging>jar</packaging>
+
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Bar.java b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Bar.java
new file mode 100644
index 00000000000..e0e9c21cd6d
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Bar.java
@@ -0,0 +1,4 @@
+package foo;
+
+public class Bar {
+} \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Whizz.java b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Whizz.java
new file mode 100644
index 00000000000..df723fd5601
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/main/java/foo/Whizz.java
@@ -0,0 +1,4 @@
+package foo;
+
+public class Whizz {
+} \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/test/java/foo/BarTest.java b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/test/java/foo/BarTest.java
new file mode 100644
index 00000000000..ecd39bd391f
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/DefaultProjectFileSystemTest/sample/src/test/java/foo/BarTest.java
@@ -0,0 +1,4 @@
+package foo;
+
+public class BarTest {
+} \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/equalsProject/pom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/equalsProject/pom.xml
new file mode 100644
index 00000000000..bf73bcf9737
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/equalsProject/pom.xml
@@ -0,0 +1,8 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <packaging>jar</packaging>
+
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/keyContainsBranch/pom.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/keyContainsBranch/pom.xml
new file mode 100644
index 00000000000..be8fdaf72b2
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/resources/ProjectTest/keyContainsBranch/pom.xml
@@ -0,0 +1,11 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <packaging>jar</packaging>
+
+ <properties>
+ <sonar.branch>BRANCH-1.X</sonar.branch>
+ </properties>
+</project> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/deprecated.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/deprecated.xml
new file mode 100644
index 00000000000..44cf56d228a
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/deprecated.xml
@@ -0,0 +1,11 @@
+<rules>
+ <rule key="org.sonar.it.checkstyle.MethodsCountCheck" priority="CRITICAL">
+ <name>Methods Count Check</name>
+ <configKey>Checker/TreeWalker/org.sonar.it.checkstyle.MethodsCountCheck</configKey>
+ <category name="Usability"/>
+ <description>Count methods.</description>
+ <param key="minMethodsCount" type="i">
+ <description>Le nombre minimum de méthodes. 10 par défaut.</description>
+ </param>
+ </rule>
+</rules> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/rules.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/rules.xml
new file mode 100644
index 00000000000..c4038bdf96c
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/rules.xml
@@ -0,0 +1,39 @@
+<rules>
+ <rule>
+ <!-- with exhaustive fields -->
+ <key>com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck</key>
+ <name>Local Variable Name</name>
+ <description>
+ <![CDATA[Checks that local, non-final variable names conform to a format specified by the format property.]]>
+ </description>
+ <isoCategory>Efficiency</isoCategory>
+ <configKey>Checker/TreeWalker/LocalVariableName</configKey>
+ <priority>BLOCKER</priority>
+ <cardinality>MULTIPLE</cardinality>
+ <param>
+ <key>tokens</key>
+ <description>
+ <![CDATA[
+ Controls whether the check applies to variable declarations or catch clause parameters
+ ]]>
+ </description>
+ </param>
+ <param>
+ <key>ignore</key>
+ <description>
+ Ignore ?
+ </description>
+ </param>
+ </rule>
+
+
+ <rule>
+ <!-- with only required fields -->
+ <key>com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck</key>
+ <name>Magic Number</name>
+ <description>
+ <![CDATA[Checks for magic numbers.]]>
+ </description>
+ <isoCategory>Maintainability</isoCategory>
+ </rule>
+</rules> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/utf8.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/utf8.xml
new file mode 100644
index 00000000000..6197e030057
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/utf8.xml
@@ -0,0 +1,11 @@
+<rules>
+ <rule>
+ <key>com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck</key>
+ <priority>BLOCKER</priority>
+ <configKey>Checker/TreeWalker/LocalVariableName</configKey>
+ <name>M &amp; M</name>
+ <description>
+ <![CDATA[éà&]]>
+ </description>
+ </rule>
+</rules>
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile.xml
new file mode 100644
index 00000000000..29e2024bf51
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile.xml
@@ -0,0 +1,7 @@
+<profile name="Sonar way" language='java'>
+ <rule key="2006" priority="warning"/>
+ <rule key="2007" priority="error">
+ <property name="toto" value="titi"/>
+ </rule>
+ <rule key="2008" priority="critical"/>
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile_name_null.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile_name_null.xml
new file mode 100644
index 00000000000..65d39e70403
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/test_profile_name_null.xml
@@ -0,0 +1,6 @@
+<profile name="" language='java'>
+ <rule key="2006" priority="warning"/>
+ <rule key="2007" priority="error">
+ <property name="toto" value="titi"/>
+ </rule>
+</profile> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-dtd-test.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-dtd-test.xml
new file mode 100644
index 00000000000..7e643b8b6fe
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-dtd-test.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<!DOCTYPE test SYSTEM "http://com.foo.bar/fake.dtd">
+<test>
+ <another-test/>
+</test> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-xsd-test.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-xsd-test.xml
new file mode 100644
index 00000000000..69f7f0e1ac1
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/StaxParserTest/xml-xsd-test.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<test xmlns="http://www.test.org"
+ xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
+ xsi:schemaLocation="http://www.test.org http://foo.bar.org/test.xsd">
+ <another-test/>
+</test>
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/sample.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/sample.xml
new file mode 100644
index 00000000000..84ad41252a7
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/sample.xml
@@ -0,0 +1,9 @@
+<samples>
+ <sample id="1" name="one">
+ <foo>bar</foo>
+ </sample>
+
+ <sample id="2" name="two">
+ <foo>toto</foo>
+ </sample>
+</samples> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/unvalid.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/unvalid.xml
new file mode 100644
index 00000000000..148118c9bd7
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/XpathParserTest/unvalid.xml
@@ -0,0 +1,3 @@
+<samples>
+ <sample not valid
+</samples> \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldUnzipFile.zip b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldUnzipFile.zip
new file mode 100644
index 00000000000..a540bc5b5ca
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldUnzipFile.zip
Binary files differ
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/bar.txt b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/bar.txt
new file mode 100644
index 00000000000..164ff71f4e7
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/bar.txt
@@ -0,0 +1 @@
+barrrrrrrrr \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/dir1/hello.properties b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/dir1/hello.properties
new file mode 100644
index 00000000000..1c6a1a9e8f5
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/dir1/hello.properties
@@ -0,0 +1 @@
+a=b \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/foo.txt b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/foo.txt
new file mode 100644
index 00000000000..4c290181ef5
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/utils/ZipUtilsTest/shouldZipDirectory/foo.txt
@@ -0,0 +1 @@
+fooooooooooo \ No newline at end of file
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/web/AbstractRubyTemplateTest/template.erb b/sonar-plugin-api/src/test/resources/org/sonar/api/web/AbstractRubyTemplateTest/template.erb
new file mode 100644
index 00000000000..b5754e20373
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/org/sonar/api/web/AbstractRubyTemplateTest/template.erb
@@ -0,0 +1 @@
+ok \ No newline at end of file