aboutsummaryrefslogtreecommitdiffstats
path: root/tests/projects/measureHistory/xoo-multi-files-sample
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/measureHistory/xoo-multi-files-sample')
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/sonar-project.properties9
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo16
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo.measures2
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo20
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo.measures2
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo12
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo.measures2
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo12
-rw-r--r--tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo.measures2
9 files changed, 77 insertions, 0 deletions
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/sonar-project.properties b/tests/projects/measureHistory/xoo-multi-files-sample/sonar-project.properties
new file mode 100644
index 00000000000..59af7dfeaca
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/sonar-project.properties
@@ -0,0 +1,9 @@
+# Root project information
+sonar.projectKey=multi-files-sample
+sonar.projectName=Sonar :: Integration Tests :: Multi-files Sample
+sonar.projectVersion=1.0-SNAPSHOT
+
+sonar.language=xoo
+
+# Some properties that will be inherited by the modules
+sonar.sources=src/main/xoo
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo
new file mode 100644
index 00000000000..74d29a4fa08
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo
@@ -0,0 +1,16 @@
+package com.sonar.it.samples.modules.a1;
+
+public class HelloA1 {
+ private int i;
+ private HelloA1() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+
+ protected String getHello() {
+ return "hello";
+ }
+} \ No newline at end of file
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo.measures b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo.measures
new file mode 100644
index 00000000000..7812e4167fb
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File1.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo
new file mode 100644
index 00000000000..796d90cfad5
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo
@@ -0,0 +1,20 @@
+package com.sonar.it.samples.modules.a2;
+
+public class HelloA2 {
+
+ public HelloA2(int i) {
+ int j = i++;
+ }
+
+ public void hello() {
+ System.out.println("hello" + " xoo");
+ }
+
+ private String myMethod() {
+ if (foo == bar) {
+ return "hello";
+ } else {
+ throw new IllegalStateException();
+ }
+ }
+}
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo.measures b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo.measures
new file mode 100644
index 00000000000..63df5add6d4
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File2.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:15
+classes:1
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo
new file mode 100644
index 00000000000..b83c3af128c
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo
@@ -0,0 +1,12 @@
+package com.sonar.it.samples.modules.b1;
+
+public class HelloB1 {
+ private int i;
+ private HelloB1() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " world");
+ }
+} \ No newline at end of file
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo.measures b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo.measures
new file mode 100644
index 00000000000..3947d3bdbff
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File3.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1 \ No newline at end of file
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo
new file mode 100644
index 00000000000..20b8bb3876a
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo
@@ -0,0 +1,12 @@
+package com.sonar.it.samples.modules.b2;
+
+public class HelloB2 {
+ private int i;
+ private HelloB2() {
+
+ }
+
+ public void hello() {
+ System.out.println("hello" + " world");
+ }
+} \ No newline at end of file
diff --git a/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo.measures b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo.measures
new file mode 100644
index 00000000000..3947d3bdbff
--- /dev/null
+++ b/tests/projects/measureHistory/xoo-multi-files-sample/src/main/xoo/sample/File4.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:12
+classes:1 \ No newline at end of file