diff options
author | Daniel Schwarz <bartfastiel@users.noreply.github.com> | 2017-08-14 14:34:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-14 14:34:29 +0200 |
commit | ffff02cbed3e5f94bbf0c1718425d66e19ac3901 (patch) | |
tree | 6d99fd0df0913d32b37da9c8b3a280af6ad856d1 /tests/projects | |
parent | 3a98cfe82a4eaf08eade2517dd115837b0126799 (diff) | |
download | sonarqube-ffff02cbed3e5f94bbf0c1718425d66e19ac3901.tar.gz sonarqube-ffff02cbed3e5f94bbf0c1718425d66e19ac3901.zip |
SONAR-9704 verify that the compute engine is resilient
Diffstat (limited to 'tests/projects')
15 files changed, 165 insertions, 0 deletions
diff --git a/tests/projects/analysis/resilience/resilience-sample-v1/sonar-project.properties b/tests/projects/analysis/resilience/resilience-sample-v1/sonar-project.properties new file mode 100644 index 00000000000..9e4aa0e3584 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v1/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/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v1/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/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo.measures new file mode 100644 index 00000000000..06c9b6c2f38 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v1/src/main/xoo/sample/Sample.xoo.measures @@ -0,0 +1,9 @@ +ncloc:13 +#Used by dashboard/widgets tests +complexity:3 +complexity_in_classes:3 +cognitive_complexity:4 +classes:1 +comment_lines:3 +public_api:5 +public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/sonar-project.properties b/tests/projects/analysis/resilience/resilience-sample-v2/sonar-project.properties new file mode 100644 index 00000000000..1691dc18d68 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v2/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.projectKey=sample +sonar.projectName=Sample +sonar.projectVersion=2.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v2/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/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo.measures new file mode 100644 index 00000000000..06c9b6c2f38 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample.xoo.measures @@ -0,0 +1,9 @@ +ncloc:13 +#Used by dashboard/widgets tests +complexity:3 +complexity_in_classes:3 +cognitive_complexity:4 +classes:1 +comment_lines:3 +public_api:5 +public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.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/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo.measures new file mode 100644 index 00000000000..06c9b6c2f38 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample2.xoo.measures @@ -0,0 +1,9 @@ +ncloc:13 +#Used by dashboard/widgets tests +complexity:3 +complexity_in_classes:3 +cognitive_complexity:4 +classes:1 +comment_lines:3 +public_api:5 +public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.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/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo.measures new file mode 100644 index 00000000000..06c9b6c2f38 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v2/src/main/xoo/sample/Sample3.xoo.measures @@ -0,0 +1,9 @@ +ncloc:13 +#Used by dashboard/widgets tests +complexity:3 +complexity_in_classes:3 +cognitive_complexity:4 +classes:1 +comment_lines:3 +public_api:5 +public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/sonar-project.properties b/tests/projects/analysis/resilience/resilience-sample-v3/sonar-project.properties new file mode 100644 index 00000000000..60fded428f3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v3/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.projectKey=sample +sonar.projectName=Sample +sonar.projectVersion=3.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v3/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/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo.measures new file mode 100644 index 00000000000..06c9b6c2f38 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample.xoo.measures @@ -0,0 +1,9 @@ +ncloc:13 +#Used by dashboard/widgets tests +complexity:3 +complexity_in_classes:3 +cognitive_complexity:4 +classes:1 +comment_lines:3 +public_api:5 +public_undocumented_api:2 diff --git a/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.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/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo.measures b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo.measures new file mode 100644 index 00000000000..06c9b6c2f38 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-sample-v3/src/main/xoo/sample/Sample3.xoo.measures @@ -0,0 +1,9 @@ +ncloc:13 +#Used by dashboard/widgets tests +complexity:3 +complexity_in_classes:3 +cognitive_complexity:4 +classes:1 +comment_lines:3 +public_api:5 +public_undocumented_api:2 |