aboutsummaryrefslogtreecommitdiffstats
path: root/tests/projects/highlighting
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/highlighting
parent5dd574819854e9ce7e2f4e181e78153a7ecbf828 (diff)
downloadsonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.tar.gz
sonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.zip
Move integration tests to directory tests/
Diffstat (limited to 'tests/projects/highlighting')
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v1/sonar-project.properties5
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo12
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.highlighting15
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.measures2
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v2/sonar-project.properties5
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo12
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.highlighting14
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.measures2
-rw-r--r--tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.symbol4
9 files changed, 71 insertions, 0 deletions
diff --git a/tests/projects/highlighting/xoo-sample-with-highlighting-v1/sonar-project.properties b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/sonar-project.properties
new file mode 100644
index 00000000000..8ec6e295138
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample-with-highlighting
+sonar.projectName=Sample With Highlighting
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo
diff --git a/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/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/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.highlighting b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.highlighting
new file mode 100644
index 00000000000..e68b1926c4c
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.highlighting
@@ -0,0 +1,15 @@
+#package
+0:7:k
+#public
+17:23:k
+#class
+24:29:k
+#public
+42:48:k
+#private
+86:93:k
+#return
+#Here CSS class is wrong (it should be "k") and will be fixed during next analysis
+116:122:s
+#"hello"
+123:130:s
diff --git a/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..f95d11f14d0
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v1/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:13
+
diff --git a/tests/projects/highlighting/xoo-sample-with-highlighting-v2/sonar-project.properties b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/sonar-project.properties
new file mode 100644
index 00000000000..8ec6e295138
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample-with-highlighting
+sonar.projectName=Sample With Highlighting
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo
diff --git a/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..b1210973dd9
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/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/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.highlighting b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.highlighting
new file mode 100644
index 00000000000..cf76f1ca82b
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.highlighting
@@ -0,0 +1,14 @@
+#package
+0:7:k
+#public
+17:23:k
+#class
+24:29:k
+#public
+42:48:k
+#private
+86:93:k
+#return
+116:122:k
+#"hello"
+123:130:s
diff --git a/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..f95d11f14d0
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1,2 @@
+ncloc:13
+
diff --git a/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.symbol b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.symbol
new file mode 100644
index 00000000000..df5ff210261
--- /dev/null
+++ b/tests/projects/highlighting/xoo-sample-with-highlighting-v2/src/main/xoo/sample/Sample.xoo.symbol
@@ -0,0 +1,4 @@
+#j
+71:72
+#i
+60:61,75:76