From 26bd5e1700d2d0a89706c61c7404ffb4f80fec3e Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 24 Jul 2015 13:13:25 +0200 Subject: Add TimeMachineTest IT --- .../measure/xoo-history-v1/sonar-project.properties | 5 +++++ .../xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo | 12 ++++++++++++ .../src/main/xoo/sample/ClassToModify.xoo.measures | 2 ++ .../src/main/xoo/sample/UnchangedClass.xoo | 12 ++++++++++++ .../src/main/xoo/sample/UnchangedClass.xoo.measures | 2 ++ .../measure/xoo-history-v2/sonar-project.properties | 5 +++++ .../xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo | 12 ++++++++++++ .../src/main/xoo/sample/ClassAdded.xoo.measures | 3 +++ .../xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo | 16 ++++++++++++++++ .../src/main/xoo/sample/ClassToModify.xoo.measures | 3 +++ .../src/main/xoo/sample/UnchangedClass.xoo | 12 ++++++++++++ .../src/main/xoo/sample/UnchangedClass.xoo.measures | 2 ++ 12 files changed, 86 insertions(+) create mode 100644 it/it-projects/measure/xoo-history-v1/sonar-project.properties create mode 100644 it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo create mode 100644 it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures create mode 100644 it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo create mode 100644 it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures create mode 100644 it/it-projects/measure/xoo-history-v2/sonar-project.properties create mode 100644 it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo create mode 100644 it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures create mode 100644 it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo create mode 100644 it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures create mode 100644 it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo create mode 100644 it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures (limited to 'it/it-projects') diff --git a/it/it-projects/measure/xoo-history-v1/sonar-project.properties b/it/it-projects/measure/xoo-history-v1/sonar-project.properties new file mode 100644 index 00000000000..e01f062e51b --- /dev/null +++ b/it/it-projects/measure/xoo-history-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 \ No newline at end of file diff --git a/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo new file mode 100644 index 00000000000..2b0288fc971 --- /dev/null +++ b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo @@ -0,0 +1,12 @@ +package sample; + +public class ClassToModify { + + public ClassToModify(int i) { + int j = i++; + } + + private String myMethod() { + return "hello"; + } +} diff --git a/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures new file mode 100644 index 00000000000..7812e4167fb --- /dev/null +++ b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/ClassToModify.xoo.measures @@ -0,0 +1,2 @@ +ncloc:12 +classes:1 diff --git a/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo new file mode 100644 index 00000000000..2b0288fc971 --- /dev/null +++ b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo @@ -0,0 +1,12 @@ +package sample; + +public class ClassToModify { + + public ClassToModify(int i) { + int j = i++; + } + + private String myMethod() { + return "hello"; + } +} diff --git a/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures new file mode 100644 index 00000000000..7812e4167fb --- /dev/null +++ b/it/it-projects/measure/xoo-history-v1/src/main/xoo/sample/UnchangedClass.xoo.measures @@ -0,0 +1,2 @@ +ncloc:12 +classes:1 diff --git a/it/it-projects/measure/xoo-history-v2/sonar-project.properties b/it/it-projects/measure/xoo-history-v2/sonar-project.properties new file mode 100644 index 00000000000..e01f062e51b --- /dev/null +++ b/it/it-projects/measure/xoo-history-v2/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 \ No newline at end of file diff --git a/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo new file mode 100644 index 00000000000..b0fd1087030 --- /dev/null +++ b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo @@ -0,0 +1,12 @@ +package sample; + +public class ClassAdded { + + public ClassAdded(int i) { + int j = i++; + } + + private String myMethod() { + return "hello"; + } +} diff --git a/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures new file mode 100644 index 00000000000..66ba834e1ef --- /dev/null +++ b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassAdded.xoo.measures @@ -0,0 +1,3 @@ +ncloc:12 +classes:1 + diff --git a/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo new file mode 100644 index 00000000000..393111bbab0 --- /dev/null +++ b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo @@ -0,0 +1,16 @@ +package sample; + +public class ClassToModify { + + public ClassToModify(int i) { + int j = i++; + } + + public String addedMethod() { + return "This method was added in v2"; + } + + private String myMethod() { + return "hello"; + } +} diff --git a/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures new file mode 100644 index 00000000000..71d60758637 --- /dev/null +++ b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/ClassToModify.xoo.measures @@ -0,0 +1,3 @@ +ncloc:16 +classes:1 + diff --git a/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo new file mode 100644 index 00000000000..2b0288fc971 --- /dev/null +++ b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo @@ -0,0 +1,12 @@ +package sample; + +public class ClassToModify { + + public ClassToModify(int i) { + int j = i++; + } + + private String myMethod() { + return "hello"; + } +} diff --git a/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures new file mode 100644 index 00000000000..7812e4167fb --- /dev/null +++ b/it/it-projects/measure/xoo-history-v2/src/main/xoo/sample/UnchangedClass.xoo.measures @@ -0,0 +1,2 @@ +ncloc:12 +classes:1 -- cgit v1.2.3