aboutsummaryrefslogtreecommitdiffstats
path: root/tests/projects/analysis/xoo-multi-languages
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-06-23 21:31:56 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-06-25 23:42:50 +0200
commit70b6899988da0d2ba0a39b846e4f1bd3fa27304f (patch)
tree1ac093a87e0fba6b07c6feb6aceae89bdd9663cf /tests/projects/analysis/xoo-multi-languages
parent5dd574819854e9ce7e2f4e181e78153a7ecbf828 (diff)
downloadsonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.tar.gz
sonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.zip
Move integration tests to directory tests/
Diffstat (limited to 'tests/projects/analysis/xoo-multi-languages')
-rw-r--r--tests/projects/analysis/xoo-multi-languages/sonar-project.properties4
-rw-r--r--tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo12
-rw-r--r--tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo.measures7
-rw-r--r--tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo212
-rw-r--r--tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2.measures7
5 files changed, 42 insertions, 0 deletions
diff --git a/tests/projects/analysis/xoo-multi-languages/sonar-project.properties b/tests/projects/analysis/xoo-multi-languages/sonar-project.properties
new file mode 100644
index 00000000000..a2941788c41
--- /dev/null
+++ b/tests/projects/analysis/xoo-multi-languages/sonar-project.properties
@@ -0,0 +1,4 @@
+sonar.projectKey=multi-language-sample
+sonar.projectName=Multi-Language Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src
diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo.measures b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..5dc0154b75d
--- /dev/null
+++ b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo.measures
@@ -0,0 +1,7 @@
+ncloc:13
+#Used by dashboard/widgets tests
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2
diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2 b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2
@@ -0,0 +1,12 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ return "hello";
+ }
+}
diff --git a/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2.measures b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2.measures
new file mode 100644
index 00000000000..5dc0154b75d
--- /dev/null
+++ b/tests/projects/analysis/xoo-multi-languages/src/sample/Sample.xoo2.measures
@@ -0,0 +1,7 @@
+ncloc:13
+#Used by dashboard/widgets tests
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2