aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-projects
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-24 12:22:32 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-24 12:22:48 +0200
commit78afe1925d8d02a28516cc3768e8fc42e3d7b71d (patch)
tree3b6e386a27309c7057be42c15a0e6e8681e2e677 /it/it-projects
parent05e45302f2bc7263da1d298bf2ad4178bebdd26f (diff)
downloadsonarqube-78afe1925d8d02a28516cc3768e8fc42e3d7b71d.tar.gz
sonarqube-78afe1925d8d02a28516cc3768e8fc42e3d7b71d.zip
Add I18nTest test
Diffstat (limited to 'it/it-projects')
-rw-r--r--it/it-projects/ui/xoo-sample/sonar-project.properties5
-rw-r--r--it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo16
-rw-r--r--it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo.measures11
3 files changed, 32 insertions, 0 deletions
diff --git a/it/it-projects/ui/xoo-sample/sonar-project.properties b/it/it-projects/ui/xoo-sample/sonar-project.properties
new file mode 100644
index 00000000000..9e4aa0e3584
--- /dev/null
+++ b/it/it-projects/ui/xoo-sample/sonar-project.properties
@@ -0,0 +1,5 @@
+sonar.projectKey=sample
+sonar.projectName=Sample
+sonar.projectVersion=1.0-SNAPSHOT
+sonar.sources=src/main/xoo
+sonar.language=xoo
diff --git a/it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo b/it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo
new file mode 100644
index 00000000000..41871e123a3
--- /dev/null
+++ b/it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo
@@ -0,0 +1,16 @@
+package sample;
+
+public class Sample {
+
+ public Sample(int i) {
+ int j = i++;
+ }
+
+ private String myMethod() {
+ if (foo == bar) {
+ return "hello";
+ } else {
+ throw new IllegalStateException();
+ }
+ }
+}
diff --git a/it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo.measures b/it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo.measures
new file mode 100644
index 00000000000..3f73ea8f695
--- /dev/null
+++ b/it/it-projects/ui/xoo-sample/src/main/xoo/sample/Sample.xoo.measures
@@ -0,0 +1,11 @@
+ncloc:13
+#Used by dashboard/widgets tests
+complexity:3
+complexity_in_classes:3
+classes:1
+comment_lines:3
+public_api:5
+public_undocumented_api:2
+duplicated_files:1
+duplicated_blocks:2
+duplicated_lines:3