diff --git a/README.md b/README.md index 4ef1e95..38039e6 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ information: ### Install the plugin Since 1.1.4 PitMP is available on Maven Central, so this step is required only -for versions before 1.1.4. +for releases before 1.1.4. ``` git clone https://github.com/STAMP-project/pitmp-maven-plugin.git cd pitmp-maven-plugin @@ -73,13 +73,6 @@ mvn install eu.stamp pitmp-maven-plugin version.you.want - - - - a.package.of.classes* - another.package.of.classes* - - org.pitest @@ -98,6 +91,32 @@ mvn install mvn pitmp:run ``` +### Configure PitMP + +You can configure your project in the root pom.xml, in the section \: +``` + + eu.stamp + pitmp-maven-plugin + version.you.want + + + + a.package.of.classes* + another.package.of.classes* + + + + + org.pitest + pitest-maven + pitest.version + + + +``` +All PIT's properties can be used. + ### PitMP properties * targetModules: to run PIT only on specified modules @@ -187,19 +206,28 @@ For an example of multi module project using PitMP see the [dnoo github](https:/ ## Releases +* pitmp-maven-plugin-1.1.5 + - tested with PIT v1.3.2 + - Corrected issues: + - [#6](https://github.com/STAMP-project/pitmp-maven-plugin/issues/6) + - [#9](https://github.com/STAMP-project/pitmp-maven-plugin/issues/9) + (Duplicate [#6](https://github.com/STAMP-project/pitmp-maven-plugin/issues/6)) + - Add automatic tests (verify_pitmp.sh) + +* v1.1.0, pitmp-maven-plugin-1.1.4 + - tested with PIT v1.3.1 + * v1.0.1 - tested with PIT v1.2.0 and Descartes v0.2-SNAPSHOT - tested with PIT v1.2.3 -* v1.1.0, pitmp-maven-plugin-1.1.4 - - tested with PIT v1.3.1 ## Tested on +* Ubuntu 16.04.4 LTS + * [dhell project on github](https://github.com/STAMP-project/dhell) * [dnoo project on github](https://github.com/STAMP-project/dnoo) * [xwiki-commons project on github](https://github.com/xwiki/xwiki-commons) * [xwiki-rendering project on github](https://github.com/xwiki/xwiki-rendering) -* Ubuntu 16.04.4 LTS - Feedbacks are welcome ! :-) diff --git a/pom.xml b/pom.xml index 5379da8..623fe45 100644 --- a/pom.xml +++ b/pom.xml @@ -91,13 +91,13 @@ org.pitest pitest-maven - 1.3.1 + 1.3.2 org.pitest pitest-entry - 1.3.1 + 1.3.2 diff --git a/src/main/java/org/pitest/maven/PmpMojo.java b/src/main/java/org/pitest/maven/PmpMojo.java index 6740f5b..db0d2a6 100644 --- a/src/main/java/org/pitest/maven/PmpMojo.java +++ b/src/main/java/org/pitest/maven/PmpMojo.java @@ -157,7 +157,6 @@ public void updateTargetClasses() targetClasses.addAll(classList); } } - else // else just let the target classes specified in the pom.xml // complete the target classes with other (dependencies) modules classes diff --git a/test_dir/dhell/bar.txt b/test_dir/dhell/bar.txt new file mode 100644 index 0000000..3a1e9dd --- /dev/null +++ b/test_dir/dhell/bar.txt @@ -0,0 +1,3 @@ +1st line +a second line, longer than the first one +3rd line with something else: 2, 4, 8, 16 diff --git a/test_dir/dhell/foo3.traces b/test_dir/dhell/foo3.traces new file mode 100644 index 0000000..5761b1e --- /dev/null +++ b/test_dir/dhell/foo3.traces @@ -0,0 +1,4 @@ +8 +-------- +-------- Hello World ! +-------- diff --git a/test_dir/dhell/hello_run3.traces b/test_dir/dhell/hello_run3.traces new file mode 100644 index 0000000..48d2d39 --- /dev/null +++ b/test_dir/dhell/hello_run3.traces @@ -0,0 +1,4 @@ +22 +---------------------- +---------------------- Hello World ! +---------------------- diff --git a/test_dir/dhell/myHelloApp.traces b/test_dir/dhell/myHelloApp.traces new file mode 100644 index 0000000..bef630b --- /dev/null +++ b/test_dir/dhell/myHelloApp.traces @@ -0,0 +1,4 @@ +1 +- +- Hello World ! +- diff --git a/test_dir/dhell/my_storage.txt b/test_dir/dhell/my_storage.txt new file mode 100644 index 0000000..bef630b --- /dev/null +++ b/test_dir/dhell/my_storage.txt @@ -0,0 +1,4 @@ +1 +- +- Hello World ! +- diff --git a/test_dir/dhell/pitmp.traces b/test_dir/dhell/pitmp.traces new file mode 100644 index 0000000..195f9ad --- /dev/null +++ b/test_dir/dhell/pitmp.traces @@ -0,0 +1,260 @@ +######## 19:36:14 +[INFO] Error stacktraces are turned on. +[INFO] Scanning for projects... +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building hello_app 1.2.2 +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- pitmp-maven-plugin:1.1.5-SNAPSHOT:run (default-cli) @ hello_app --- +[INFO] Found plugin : Default html report plugin +[INFO] Found plugin : Default csv report plugin +[INFO] Found plugin : Default xml report plugin +[INFO] Found plugin : Static initializer code detector plugin +[INFO] Found plugin : Static initializer filter plugin +[INFO] Found plugin : Excluded annotations plugin +[INFO] Found plugin : Inlined finally block filter plugin +[INFO] Found plugin : Try with resources filter +[INFO] Found plugin : Implicit null check filter +[INFO] Found plugin : For each loop filter +[INFO] Found plugin : Logging calls filter +[INFO] Found plugin : Infinite for loop filter +[INFO] Found plugin : Long running iterator loop filter +[INFO] Found plugin : For loop counter filter +[INFO] Found plugin : Kotlin junk mutations filter +[INFO] Found plugin : Max mutations per class limit +[INFO] Found plugin : Equals shortcut equivalent mutant filter +[INFO] Found plugin : Trivial return vals equivalence filter +[INFO] Found plugin : Mutant export plugin +[INFO] Found shared classpath plugin : Default mutation engine +[INFO] Found shared classpath plugin : JUnit plugin +[INFO] Found shared classpath plugin : TestNG plugin +[INFO] Adding org.pitest:pitest to SUT classpath +[INFO] Mutating from /home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dhell/target/classes +7:36:17 PM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue. +7:36:17 PM PIT >> INFO : Sending 6 test classes to minion +7:36:17 PM PIT >> INFO : Sent tests to minion +7:36:17 PM PIT >> INFO : MINION : 7:36:17 PM PIT >> INFO : Checking environment + +7:36:17 PM PIT >> INFO : MINION : 7:36:17 PM PIT >> INFO : Found 11 tests + +7:36:17 PM PIT >> INFO : MINION : 7:36:17 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0 + +7:36:17 PM PIT >> INFO : MINION : 7:36:17 PM PIT >> INFO : 11 tests received + +7:36:17 PM PIT >> INFO : MINION : Apr 23, 2018 7:36:17 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces + +7:36:17 PM PIT >> INFO : MINION : Apr 23, 2018 7:36:17 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces + +7:36:17 PM PIT >> INFO : MINION : Apr 23, 2018 7:36:17 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo2.traces + +7:36:17 PM PIT >> INFO : MINION : Apr 23, 2018 7:36:17 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces + +7:36:17 PM PIT >> INFO : MINION : Apr 23, 2018 7:36:17 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces + +7:36:17 PM PIT >> INFO : MINION : Apr 23, 2018 7:36:17 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces + +7:36:17 PM PIT >> INFO : MINION : Apr 23, 2018 7:36:17 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = foo1.traces + +/-\|/-\|/-\7:36:17 PM PIT >> INFO : Calculated coverage in 0 seconds. +7:36:18 PM PIT >> INFO : Created 3 mutation test units +/stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.trstderr : aces +Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:19 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +-stderr : Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.trstderr : aces +Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.tracstderr : es +Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloAppstderr : .traces +stderr : Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:20 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +7:36:23 PM PIT >> WARNING : Minion exited abnormally due to TIMED_OUT +stderr : Apr 23, 2018 7:36:23 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:36:23 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.trstderr : aces +stderr : Apr 23, 2018 7:36:23 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:23 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:23 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:23 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +7:36:26 PM PIT >> WARNING : Minion exited abnormally due to TIMED_OUT +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.trastderr : ces +Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.tracstderr : es +Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3stderr : .traces +Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = foo1.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo2.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +stderr : Apr 23, 2018 7:36:27 PM eu.stamp_project.examples.dhell.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +\7:36:27 PM PIT >> INFO : Completed in 10 seconds +================================================================================ +- Timings +================================================================================ +> scan classpath : < 1 second +> coverage and dependency analysis : < 1 second +> build mutation tests : < 1 second +> run mutation analysis : 9 seconds +-------------------------------------------------------------------------------- +> Total : 10 seconds +-------------------------------------------------------------------------------- +================================================================================ +- Statistics +================================================================================ +>> Generated 101 mutations Killed 35 (35%) +>> Ran 92 tests (0.91 tests per mutation) +================================================================================ +- Mutators +================================================================================ +> org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator +>> Generated 9 Killed 4 (44%) +> KILLED 4 SURVIVED 1 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 4 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.IncrementsMutator +>> Generated 4 Killed 3 (75%) +> KILLED 2 SURVIVED 0 TIMED_OUT 1 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator +>> Generated 43 Killed 9 (21%) +> KILLED 9 SURVIVED 7 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 27 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator +>> Generated 10 Killed 9 (90%) +> KILLED 9 SURVIVED 1 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 0 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.MathMutator +>> Generated 6 Killed 0 (0%) +> KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 6 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator +>> Generated 29 Killed 10 (34%) +> KILLED 9 SURVIVED 7 TIMED_OUT 1 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 12 +-------------------------------------------------------------------------------- +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 11.575 s +[INFO] Finished at: 2018-04-23T19:36:27+02:00 +[INFO] Final Memory: 14M/249M +[INFO] ------------------------------------------------------------------------ +######## 19:36:27 +######## pom.xml.pitmp.conf1: OK +######################################## diff --git a/test_dir/dhell/pom.xml b/test_dir/dhell/pom.xml new file mode 100644 index 0000000..2493631 --- /dev/null +++ b/test_dir/dhell/pom.xml @@ -0,0 +1,74 @@ + + + 4.0.0 + + eu.stamp-project.examples + hello_app + 1.2.2 + + + UTF-8 + UTF-8 + + + + + junit + junit + 4.12 + + + + org.pitest + pitest-maven + 1.3.2 + + + + + + + eu.stamp-project + pitmp-maven-plugin + 1.1.5-SNAPSHOT + + + + eu.stamp_project.examples.dhell* + + + eu.stamp_project.examples.dhell.MyLogger + + + eu.stamp_project.examples.dhell.MyStorage.deleteFile + eu.stamp_project.examples.dhell.HelloApp.myPrint + eu.stamp_project.examples.dhell.HelloApp.cardMyTraces + eu.stamp_project.examples.dhell.HelloApp.getMyTraces + + + + + + maven-clean-plugin + 3.0.0 + + + + . + + *.txt + *.traces + *.log + + false + + + + + + + + diff --git a/test_dir/dhell/pom.xml.pitmp.conf1 b/test_dir/dhell/pom.xml.pitmp.conf1 new file mode 100644 index 0000000..2493631 --- /dev/null +++ b/test_dir/dhell/pom.xml.pitmp.conf1 @@ -0,0 +1,74 @@ + + + 4.0.0 + + eu.stamp-project.examples + hello_app + 1.2.2 + + + UTF-8 + UTF-8 + + + + + junit + junit + 4.12 + + + + org.pitest + pitest-maven + 1.3.2 + + + + + + + eu.stamp-project + pitmp-maven-plugin + 1.1.5-SNAPSHOT + + + + eu.stamp_project.examples.dhell* + + + eu.stamp_project.examples.dhell.MyLogger + + + eu.stamp_project.examples.dhell.MyStorage.deleteFile + eu.stamp_project.examples.dhell.HelloApp.myPrint + eu.stamp_project.examples.dhell.HelloApp.cardMyTraces + eu.stamp_project.examples.dhell.HelloApp.getMyTraces + + + + + + maven-clean-plugin + 3.0.0 + + + + . + + *.txt + *.traces + *.log + + false + + + + + + + + diff --git a/test_dir/dhell/pom.xml.pitmp.noconf b/test_dir/dhell/pom.xml.pitmp.noconf new file mode 100644 index 0000000..dbbe6f3 --- /dev/null +++ b/test_dir/dhell/pom.xml.pitmp.noconf @@ -0,0 +1,58 @@ + + + 4.0.0 + + eu.stamp-project.examples + hello_app + 1.2.2 + + + UTF-8 + UTF-8 + + + + + junit + junit + 4.12 + + + + org.pitest + pitest-maven + 1.3.2 + + + + + + + eu.stamp-project + pitmp-maven-plugin + 1.1.5-SNAPSHOT + + + + maven-clean-plugin + 3.0.0 + + + + . + + *.txt + *.traces + *.log + + false + + + + + + + + diff --git a/test_dir/dhell/run_tests_20180423_18h14.res b/test_dir/dhell/run_tests_20180423_18h14.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_18h14.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_18h15.res b/test_dir/dhell/run_tests_20180423_18h15.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_18h15.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_18h17.res b/test_dir/dhell/run_tests_20180423_18h17.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_18h17.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_18h21.res b/test_dir/dhell/run_tests_20180423_18h21.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_18h21.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_18h52.res b/test_dir/dhell/run_tests_20180423_18h52.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_18h52.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_18h57.res b/test_dir/dhell/run_tests_20180423_18h57.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_18h57.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h09.res b/test_dir/dhell/run_tests_20180423_19h09.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h09.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h11.res b/test_dir/dhell/run_tests_20180423_19h11.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h11.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h14.res b/test_dir/dhell/run_tests_20180423_19h14.res new file mode 100644 index 0000000..732fc9a --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h14.res @@ -0,0 +1 @@ +######## pom.xml.pitmp.noconf: OK diff --git a/test_dir/dhell/run_tests_20180423_19h17.res b/test_dir/dhell/run_tests_20180423_19h17.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h17.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h18.res b/test_dir/dhell/run_tests_20180423_19h18.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h18.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h23.res b/test_dir/dhell/run_tests_20180423_19h23.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h23.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h25.res b/test_dir/dhell/run_tests_20180423_19h25.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h25.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h33.res b/test_dir/dhell/run_tests_20180423_19h33.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h33.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/run_tests_20180423_19h35.res b/test_dir/dhell/run_tests_20180423_19h35.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dhell/run_tests_20180423_19h35.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/HelloApp.java b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/HelloApp.java new file mode 100644 index 0000000..2420827 --- /dev/null +++ b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/HelloApp.java @@ -0,0 +1,204 @@ +package eu.stamp_project.examples.dhell; + +// ********************************************************************** +import eu.stamp_project.examples.dhell.MyStorage; +import eu.stamp_project.examples.dhell.MyLogger; + +// ********************************************************************** +public class HelloApp +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** methods + + // ********************************************************************** + public HelloApp() + { + String methodName = "HelloApp"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + MyPrintCount = 1; + MyTraces = null; + MyTracesName = "myHelloApp.traces"; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public HelloApp(int printCount) + { + String methodName = "HelloApp_int"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + MyPrintCount = printCount; + MyTraces = null; + MyTracesName = "myHelloApp.traces"; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public HelloApp(String tracesName) + { + String methodName = "HelloApp_String"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + MyPrintCount = 1; + MyTraces = null; + MyTracesName = tracesName; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public HelloApp(int printCount, String tracesName) + { + String methodName = "HelloApp_int_String"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + MyPrintCount = printCount; + MyTraces = null; + MyTracesName = tracesName; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void run() + { + String methodName = "run"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + String indent = "-"; + String countString = Integer.toString(MyPrintCount); + + if (MyTracesName.length() > 0) + { + MyTraces = new MyStorage(MyTracesName); + } + else + { + MyTraces = new MyStorage(); + } + + MyTraces.addData(countString); + + for (int i = 1; i < MyPrintCount; i++) + { + indent = indent + "-"; + } + MyLogger.Instance.fine("indent = '" + indent + "'"); + myPrint(indent); + myPrint(indent + " Hello World !"); + myPrint(indent); + + MyTraces.saveData(); + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void computeMyUselessResult() + { + // PI = 3,141 592 653 589 793 - PI (10 chiffres exactes) ~ 104348 / 33215 + // PI = 3,1415926535 8979323846 2643383279 5028841971 6939937510 5820974944 + // 5923078164 0628620899 8628034825 3421170679 + // PHI = (1 + rootsquare(5)) / 2 = 1,618 033 988 7 + // PHI = 1,618 033 988 749 894 848 204 586 834 365 638 117 720 309 179 805 + // 762 862 135 448 622 705 260 462 189 024 497 072 072 041 + } + + // ********************************************************************** + // ******** attributes + + // ********************************************************************** + public int getMyPrintCount() + { + return(MyPrintCount); + } + + // ********************************************************************** + public String getMyTracesName() + { + return(MyTracesName); + } + + // ********************************************************************** + public boolean getShouldPrintOnStdout() + { + return(ShouldPrintOnStdout); + } + + // ********** + public void setShouldPrintOnStdout(boolean value) + { + ShouldPrintOnStdout = value; + } + + // ********************************************************************** + // ******** associations + + // ********************************************************************** + public int cardMyTraces() + { + int theCard = 0; + + if (MyTraces != null) + { + theCard = 1; + } + + return(theCard); + } + + // ********** + public MyStorage getMyTraces() + { + return(MyTraces); + } + + // ********************************************************************** + // protected + // ********************************************************************** + // ******** methods + + // ********************************************************************** + protected void myPrint(String message) + { + if (getShouldPrintOnStdout()) + { + System.out.println(message); + } + MyTraces.addData(message); + } + + // ********************************************************************** + // private + // ********************************************************************** + // ******** attributes + private int MyPrintCount; + private String MyTracesName; + private MyStorage MyTraces; + private boolean ShouldPrintOnStdout; +} diff --git a/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyGod.java b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyGod.java new file mode 100644 index 0000000..6a43d90 --- /dev/null +++ b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyGod.java @@ -0,0 +1,111 @@ +package eu.stamp_project.examples.dhell; + +// ********************************************************************** +import eu.stamp_project.examples.dhell.HelloApp; +import eu.stamp_project.examples.dhell.MyLogger; + +// ********************************************************************** +public class MyGod +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** methods + + // ********************************************************************** + public static void main(String[] args) + { + int indentCount = 1; + int argIndex = 0; + String indentArg = ""; + String fileName = ""; + String logLevel = "WARNING"; + boolean printOnStdout = true; + boolean shouldRun = true; + + while (argIndex < args.length) + { + if (args[argIndex].equals("-h")) + { + printHelp(); + shouldRun = false; + argIndex = args.length; + } + else if (args[argIndex].equals("-no_stdout")) + { + printOnStdout = false; + argIndex = argIndex + 1; + } + else if (args[argIndex].equals("-log")) + { + if (argIndex + 1 < args.length) + { + logLevel = args[argIndex + 1]; + } + else + { + System.err.println("Missing argument: -log , -h for help"); + System.exit(1); + } + argIndex = argIndex + 2; + } + else if (indentArg.length() == 0) + { + indentArg = args[argIndex]; + argIndex = argIndex + 1; + } + else if (fileName.length() == 0) + { + fileName = args[argIndex]; + argIndex = argIndex + 1; + } + else + { + System.err.println("Unknown argument: " + args[argIndex] + ", -h for help"); + System.exit(1); + } + } + + if (shouldRun) + { + if (indentArg.length() > 0) + { + try + { + indentCount = Integer.parseInt(indentArg); + } + catch (NumberFormatException e) + { + System.err.println("Argument " + indentArg + + " must be an integer, -h for help"); + System.exit(1); + } + } + + MyLogger.initLogs(logLevel); + + HelloApp myApp = new HelloApp(indentCount, fileName); + myApp.setShouldPrintOnStdout(printOnStdout); + myApp.run(); + } + } + + // ********************************************************************** + public static void printHelp() + { + System.out.println("eu.stamp_project.examples.dhell.MyGod"); + System.out.println("Print on stdout a 'Hello World !' message formatted according to"); + System.out.println(", and generate an output file"); + System.out.println(""); + System.out.println("args: [-h | [] [-no_stdout] [-log ]]"); + System.out.println(" -h: this help"); + System.out.println(" : number of '-' for message indentation, default is 1"); + System.out.println(" : output file name, default is my_storage.txt"); + System.out.println(" output file name contains and the stdout"); + System.out.println(" -no_stdout: if specified, do not print anything on stdout,"); + System.out.println(" generate only the output file"); + System.out.println(" -log : specify the level of information to log,"); + System.out.println(" is one of {OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL}, default is WARNING"); + System.out.println(" generate a log file, dhell.log, in the current directory"); + } +} diff --git a/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyLogger.java b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyLogger.java new file mode 100644 index 0000000..023ef8a --- /dev/null +++ b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyLogger.java @@ -0,0 +1,107 @@ +package eu.stamp_project.examples.dhell; + +// ********************************************************************** +import java.util.logging.*; +import java.io.IOException; + +// ********************************************************************** +public class MyLogger +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** attributes + public static Logger Instance = Logger.getLogger(MyLogger.class.getName()); + + // ******** methods + // ********************************************************************** + public static void initLogs(String level) + { + Handler logHandler = null; + Formatter logFormater = null; + boolean fileCreated = false; + + Instance.setUseParentHandlers(false); + + try + { + logHandler = new FileHandler("dhell.log", false); + logHandler.setFormatter(new SimpleFormatter()); + fileCreated = true; + } + catch (Exception e) + { + logHandler = new ConsoleHandler(); + } + Instance.addHandler(logHandler); + + logHandler.setLevel(Level.ALL); + Instance.setLevel(stringToLevel(level)); + + if (fileCreated) + { + Instance.info("Log file created"); + } + else + { + Instance.warning("Cannot create log file, redirecting logs to the console"); + } + Instance.severe("checking log level: severe: Exiting initLogs"); + Instance.warning("checking log level: warning: Exiting initLogs"); + Instance.info("checking log level: info: Exiting initLogs"); + Instance.config("checking log level: config: Exiting initLogs"); + Instance.fine("checking log level: fine: Exiting initLogs"); + Instance.finer("checking log level: finer: Exiting initLogs"); + Instance.finest("checking log level: finest: Exiting initLogs"); + } + + // ********************************************************************** + public static Level stringToLevel(String level) + { + // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL + Level theLevel = Level.WARNING; + + if (level.equals("OFF")) + { + theLevel = Level.OFF; + } + else if (level.equals("SEVERE")) + { + theLevel = Level.SEVERE; + } + else if (level.equals("WARNING")) + { + theLevel = Level.WARNING; + } + else if (level.equals("INFO")) + { + theLevel = Level.INFO; + } + else if (level.equals("CONFIG")) + { + theLevel = Level.CONFIG; + } + else if (level.equals("FINE")) + { + theLevel = Level.FINE; + } + else if (level.equals("FINER")) + { + theLevel = Level.FINER; + } + else if (level.equals("FINEST")) + { + theLevel = Level.FINEST; + } + else if (level.equals("ALL")) + { + theLevel = Level.ALL; + } + + return(theLevel); + } + + // ********************************************************************** + // private + // ********************************************************************** +} diff --git a/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyStorage.java b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyStorage.java new file mode 100644 index 0000000..8b708dc --- /dev/null +++ b/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyStorage.java @@ -0,0 +1,227 @@ +package eu.stamp_project.examples.dhell; + +// ********************************************************************** +import java.io.PrintStream; +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.IOException; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dhell.MyLogger; + +// ********************************************************************** +public class MyStorage +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** methods + + // ********************************************************************** + public static void deleteFile(String fileName) + { + String methodName = "deleteFile"; + MyLogger.Instance.entering("MyStorage", methodName); + + File theFile = null; + + // delete file if it already exists + theFile = new File(fileName); + if (theFile.exists()) + { + theFile.delete(); + } + + MyLogger.Instance.exiting("MyStorage", methodName); + } + + // ********************************************************************** + public MyStorage() + { + String methodName = "MyStorage"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + FileName = "my_storage.txt"; + MyData = new ArrayList(); + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public MyStorage(String fileName) + { + String methodName = "MyStorage_String"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + this.FileName = fileName; + MyData = new ArrayList(); + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void readData() + { + String methodName = "readData"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + BufferedReader myBuffer = null; + FileReader myFile = null; + String currentLine; + + try + { + myFile = new FileReader(FileName); + myBuffer = new BufferedReader(myFile); + while ((currentLine = myBuffer.readLine()) != null) + { + addData(currentLine); + } + } + catch(IOException e) + { + System.out.println("Error: cannot read " + FileName); + } + + try + { + if (myBuffer != null) + { + myBuffer.close(); + } + if (myFile != null) + { + myFile.close(); + } + } + catch(IOException e) + { + System.out.println("Error: closing " + FileName); + } + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void saveData() + { + String methodName = "saveData"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + try + { + PrintStream writer = new PrintStream(new File(FileName)); + for (int i = 0; i < getDataSize(); i++) + { + writer.println(getData(i)); + } + writer.close(); + } + catch(IOException e) + { + System.out.println("Error: cannot write into " + FileName); + } + + MyLogger.Instance.exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public boolean isEqual(MyStorage anotherStorage) + { + String methodName = "isEqual"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + boolean areEqual = (getDataSize() == anotherStorage.getDataSize()); + + for (int i = 0; i < getDataSize() && areEqual; i++) + { + if (! (getData(i).equals(anotherStorage.getData(i)))) + { + areEqual = false; + } + } + + MyLogger.Instance.exiting(getClass().getName(), methodName); + return(areEqual); + } + + // ********************************************************************** + public boolean dataAreEqual(ArrayList otherData) + { + String methodName = "dataAreEqual"; + MyLogger.Instance.entering(getClass().getName(), methodName); + + boolean areEqual = (getDataSize() == otherData.size()); + + for (int i = 0; i < getDataSize() && areEqual; i++) + { + if (! (getData(i).equals(otherData.get(i)))) + { + areEqual = false; + } + } + + MyLogger.Instance.exiting(getClass().getName(), methodName); + return(areEqual); + } + + // ********************************************************************** + // ******** attributes + + // ********************************************************************** + public String getFileName() + { + return(FileName); + } + + // ********************************************************************** + public int getDataSize() + { + return(MyData.size()); + } + + // ********************************************************************** + public String getData(int index) + { + return(MyData.get(index)); + } + + // ********************************************************************** + public void addData(String aData) + { + MyLogger.Instance.finest("IN : DataSize = " + Integer.toString(getDataSize()) + + " - aData = " + aData); + + MyData.add(aData); + + MyLogger.Instance.finest("OUT: DataSize = " + Integer.toString(getDataSize())); + } + + // ********************************************************************** + public void delData(String aData) + { + MyLogger.Instance.finest("IN : DataSize = " + Integer.toString(getDataSize())); + + boolean found = false; + + for (int i = 0; i < getDataSize() && ! found; i++) + { + if (getData(i).equals(aData)) + { + MyData.remove(i); + found = true; + } + } + + MyLogger.Instance.finest("OUT: DataSize = " + Integer.toString(getDataSize()) + + " - found = " + Boolean.toString(found)); + } + + // ********************************************************************** + // private + // ********************************************************************** + // ******** attributes + private String FileName; + private ArrayList MyData; +} diff --git a/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/HelloAppTest.java b/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/HelloAppTest.java new file mode 100644 index 0000000..da7e551 --- /dev/null +++ b/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/HelloAppTest.java @@ -0,0 +1,159 @@ +package eu.stamp_project.examples.dhell; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dhell.HelloApp; + +public class HelloAppTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testHelloAppDefault() throws Exception + { + HelloApp myApp = null; + File theFile = null; + + myApp = new HelloApp(); + assertEquals(1, myApp.getMyPrintCount()); + assertEquals("myHelloApp.traces", myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppInt() throws Exception + { + HelloApp myApp = null; + File theFile = null; + int myCount = 8; + + myApp = new HelloApp(myCount); + assertEquals(myCount, myApp.getMyPrintCount()); + assertEquals("myHelloApp.traces", myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppString() throws Exception + { + HelloApp myApp = null; + File theFile = null; + String MyTracesName = "foo1.traces"; + + myApp = new HelloApp(MyTracesName); + assertEquals(1, myApp.getMyPrintCount()); + assertEquals(MyTracesName, myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppIntString() throws Exception + { + HelloApp myApp = null; + File theFile = null; + int myCount = 8; + String MyTracesName = "foo2.traces"; + + myApp = new HelloApp(myCount, MyTracesName); + assertEquals(myCount, myApp.getMyPrintCount()); + assertEquals(MyTracesName, myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppRun1() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + String countString; + // String message; + + myApp = new HelloApp(); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + theFile = new File(myApp.getMyTracesName()); + countString = Integer.toString(myApp.getMyPrintCount()); + assertEquals(true, theFile.exists()); + assertEquals(true, countString.equals(myApp.getMyTraces().getData(0))); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + } + + @Test + public void testHelloAppRun2() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 8; + String countString = Integer.toString(myCount); + String MyTracesName = "foo3.traces"; + // String message; + + myApp = new HelloApp(myCount, MyTracesName); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(true, theFile.exists()); + assertEquals(true, countString.equals(myApp.getMyTraces().getData(0))); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + } + + @Test + public void testHelloAppRun3() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 22; + String countString = Integer.toString(myCount); + String helloString = "---------------------- Hello World !"; + String MyTracesName = "hello_run3.traces"; + // String message; + + myApp = new HelloApp(myCount, MyTracesName); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } + + // ********************************************************************** + // private + // ********************************************************************** + // ******** attributes +} diff --git a/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/MyStorageTest.java b/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/MyStorageTest.java new file mode 100644 index 0000000..c3998b7 --- /dev/null +++ b/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/MyStorageTest.java @@ -0,0 +1,118 @@ +package eu.stamp_project.examples.dhell; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dhell.MyStorage; + +public class MyStorageTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testMyStorageDefault() throws Exception + { + MyStorage myFile = null; + String myFileName = "my_storage.txt"; + File theFile = null; + + MyStorage.deleteFile(myFileName); + + myFile = new MyStorage(); + assertEquals(myFileName, myFile.getFileName()); + assertEquals(0, myFile.getDataSize()); + + theFile = new File(myFileName); + theFile = new File(myFileName); + assertEquals(false, theFile.exists()); + } + + @Test + public void testMyStorageString() throws Exception + { + MyStorage myFile = null; + String myFileName = "foofoo.txt"; + File theFile = null; + + MyStorage.deleteFile(myFileName); + + myFile = new MyStorage(myFileName); + assertEquals(myFileName, myFile.getFileName()); + assertEquals(0, myFile.getDataSize()); + + theFile = new File(myFileName); + assertEquals(false, theFile.exists()); + } + + @Test + public void testAddData() throws Exception + { + MyStorage myFile = null; + String myFileName = "foo.txt"; + ArrayList myData = new ArrayList(); + + // file content + // 1st line + // a second line, longer than the first one + // 3rd line with something else: 2, 4, 8, 16 + myData.add("1st line"); + myData.add("a second line, longer than the first one"); + myData.add("3rd line with something else: 2, 4, 8, 16"); + + myFile = new MyStorage(myFileName); + for (int i = 0; i < myData.size(); i++) + { + myFile.addData(myData.get(i)); + } + + assertEquals(myData.size(), myFile.getDataSize()); + assertEquals(true, myFile.dataAreEqual(myData)); + } + + @Test + public void testSaveReadData() throws Exception + { + MyStorage myFile = null; + MyStorage mySecondFile = null; + String myFileName = "bar.txt"; + File theFile = null; + ArrayList myData = new ArrayList(); + + MyStorage.deleteFile(myFileName); + + // file content + // 1st line + // a second line, longer than the first one + // 3rd line with something else: 2, 4, 8, 16 + myData.add("1st line"); + myData.add("a second line, longer than the first one"); + myData.add("3rd line with something else: 2, 4, 8, 16"); + + // write data in the first file + myFile = new MyStorage(myFileName); + for (int i = 0; i < myData.size(); i++) + { + myFile.addData(myData.get(i)); + } + assertEquals(myData.size(), myFile.getDataSize()); + assertEquals(true, myFile.dataAreEqual(myData)); + + myFile.saveData(); + theFile = new File(myFileName); + assertEquals(true, theFile.exists()); + + // read data in the 2nd file + mySecondFile = new MyStorage(myFileName); + assertEquals(true, theFile.exists()); + + mySecondFile.readData(); + assertEquals(myData.size(), mySecondFile.getDataSize()); + assertEquals(true, mySecondFile.dataAreEqual(myData)); + + // compare content + assertEquals(true, myFile.isEqual(mySecondFile)); + } +} diff --git a/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/HelloApp.class b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/HelloApp.class new file mode 100644 index 0000000..91ecd09 Binary files /dev/null and b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/HelloApp.class differ diff --git a/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyGod.class b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyGod.class new file mode 100644 index 0000000..742ce55 Binary files /dev/null and b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyGod.class differ diff --git a/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyLogger.class b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyLogger.class new file mode 100644 index 0000000..a6f37fd Binary files /dev/null and b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyLogger.class differ diff --git a/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyStorage.class b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyStorage.class new file mode 100644 index 0000000..a157365 Binary files /dev/null and b/test_dir/dhell/target/classes/eu/stamp_project/examples/dhell/MyStorage.class differ diff --git a/test_dir/dhell/target/hello_app-1.2.2.jar b/test_dir/dhell/target/hello_app-1.2.2.jar new file mode 100644 index 0000000..3e4a5b5 Binary files /dev/null and b/test_dir/dhell/target/hello_app-1.2.2.jar differ diff --git a/test_dir/dhell/target/maven-archiver/pom.properties b/test_dir/dhell/target/maven-archiver/pom.properties new file mode 100644 index 0000000..ee59489 --- /dev/null +++ b/test_dir/dhell/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Apr 23 19:36:14 CEST 2018 +version=1.2.2 +groupId=eu.stamp-project.examples +artifactId=hello_app diff --git a/test_dir/dhell/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/test_dir/dhell/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..ec2110f --- /dev/null +++ b/test_dir/dhell/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,4 @@ +eu/stamp_project/examples/dhell/MyStorage.class +eu/stamp_project/examples/dhell/MyLogger.class +eu/stamp_project/examples/dhell/MyGod.class +eu/stamp_project/examples/dhell/HelloApp.class diff --git a/test_dir/dhell/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/test_dir/dhell/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..3d5df03 --- /dev/null +++ b/test_dir/dhell/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,4 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyGod.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyStorage.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/MyLogger.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dhell/src/main/java/eu/stamp_project/examples/dhell/HelloApp.java diff --git a/test_dir/dhell/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/test_dir/dhell/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..8ff7b28 --- /dev/null +++ b/test_dir/dhell/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,2 @@ +eu/stamp_project/examples/dhell/HelloAppTest.class +eu/stamp_project/examples/dhell/MyStorageTest.class diff --git a/test_dir/dhell/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/test_dir/dhell/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..9e794bc --- /dev/null +++ b/test_dir/dhell/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/MyStorageTest.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dhell/src/test/java/eu/stamp_project/examples/dhell/HelloAppTest.java diff --git a/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/HelloApp.java.html b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/HelloApp.java.html new file mode 100644 index 0000000..c304753 --- /dev/null +++ b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/HelloApp.java.html @@ -0,0 +1,3143 @@ + + + + + + + + +

HelloApp.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dhell;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import eu.stamp_project.examples.dhell.MyStorage;
+ +5 + + + + + +
import eu.stamp_project.examples.dhell.MyLogger;
+ +6 + + + + + +
+ +7 + + + + + +
// **********************************************************************
+ +8 + + + + + +
public class HelloApp
+ +9 + + + + + +
{
+ +10 + + + + + +
   // **********************************************************************
+ +11 + + + + + +
   // public
+ +12 + + + + + +
   // **********************************************************************
+ +13 + + + + + +
   // ******** methods
+ +14 + + + + + +
+ +15 + + + + + +
   // **********************************************************************
+ +16 + + + + + +
   public HelloApp()
+ +17 + + + + + +
   {
+ +18 + + + + + +
      String methodName = "HelloApp";
+ +19 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +20 + + + + + +
+ +21 + + + + + +
      MyPrintCount = 1;
+ +22 + + + + + +
      MyTraces = null;
+ +23 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +24 + + + + + +
      ShouldPrintOnStdout = true;
+ +25 + + +1 + +1. : removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +26 + + + + + +
+ +27 + + + + + +
      MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +28 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +29 + + + + + +
+ +30 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // **********************************************************************
+ +34 + + + + + +
   public HelloApp(int printCount)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      String methodName = "HelloApp_int";
+ +37 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +38 + + + + + +
+ +39 + + + + + +
      MyPrintCount = printCount;
+ +40 + + + + + +
      MyTraces = null;
+ +41 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +42 + + + + + +
      ShouldPrintOnStdout = true;
+ +43 + + +1 + +1. : removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +44 + + + + + +
+ +45 + + + + + +
      MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +46 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public HelloApp(String tracesName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "HelloApp_String";
+ +55 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      MyPrintCount = 1;
+ +58 + + + + + +
      MyTraces = null;
+ +59 + + + + + +
      MyTracesName = tracesName;
+ +60 + + + + + +
      ShouldPrintOnStdout = true;
+ +61 + + +1 + +1. : removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +62 + + + + + +
+ +63 + + + + + +
      MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +64 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +65 + + + + + +
+ +66 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   public HelloApp(int printCount, String tracesName)
+ +71 + + + + + +
   {
+ +72 + + + + + +
      String methodName = "HelloApp_int_String";
+ +73 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +74 + + + + + +
+ +75 + + + + + +
      MyPrintCount = printCount;
+ +76 + + + + + +
      MyTraces = null;
+ +77 + + + + + +
      MyTracesName = tracesName;
+ +78 + + + + + +
      ShouldPrintOnStdout = true;
+ +79 + + +1 + +1. : removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +80 + + + + + +
+ +81 + + + + + +
      MyLogger.Instance.info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +82 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +83 + + + + + +
+ +84 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +85 + + + + + +
   }
+ +86 + + + + + +
+ +87 + + + + + +
   // **********************************************************************
+ +88 + + + + + +
   public void run()
+ +89 + + + + + +
   {
+ +90 + + + + + +
      String methodName = "run";
+ +91 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +92 + + + + + +
+ +93 + + + + + +
      String indent = "-";
+ +94 + + + + + +
      String countString = Integer.toString(MyPrintCount);
+ +95 + + + + + +
+ +96 + + +2 + +1. run : changed conditional boundary → SURVIVED
+2. run : negated conditional → KILLED
+ +
+
      if (MyTracesName.length() > 0)
+ +97 + + + + + +
      {
+ +98 + + + + + +
         MyTraces = new MyStorage(MyTracesName);
+ +99 + + + + + +
      }
+ +100 + + + + + +
      else
+ +101 + + + + + +
      {
+ +102 + + + + + +
         MyTraces = new MyStorage();
+ +103 + + + + + +
      }
+ +104 + + + + + +
+ +105 + + +1 + +1. run : removed call to eu/stamp_project/examples/dhell/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(countString);
+ +106 + + + + + +
+ +107 + + +3 + +1. run : Changed increment from 1 to -1 → TIMED_OUT
+2. run : negated conditional → TIMED_OUT
+3. run : changed conditional boundary → KILLED
+ +
+
      for (int i = 1; i < MyPrintCount; i++)
+ +108 + + + + + +
      {
+ +109 + + + + + +
         indent = indent + "-";
+ +110 + + + + + +
      }
+ +111 + + + + + +
      MyLogger.Instance.fine("indent = '" + indent + "'");
+ +112 + + +1 + +1. run : removed call to eu/stamp_project/examples/dhell/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent);
+ +113 + + +1 + +1. run : removed call to eu/stamp_project/examples/dhell/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent + " Hello World !");
+ +114 + + +1 + +1. run : removed call to eu/stamp_project/examples/dhell/HelloApp::myPrint → SURVIVED
+ +
+
      myPrint(indent);
+ +115 + + + + + +
+ +116 + + +1 + +1. run : removed call to eu/stamp_project/examples/dhell/MyStorage::saveData → KILLED
+ +
+
      MyTraces.saveData();
+ +117 + + + + + +
+ +118 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +119 + + + + + +
   }
+ +120 + + + + + +
+ +121 + + + + + +
   // **********************************************************************
+ +122 + + + + + +
   public void computeMyUselessResult()
+ +123 + + + + + +
   {
+ +124 + + + + + +
      // PI = 3,141 592 653 589 793 - PI (10 chiffres exactes) ~ 104348 / 33215
+ +125 + + + + + +
      // PI = 3,1415926535 8979323846 2643383279 5028841971 6939937510 5820974944
+ +126 + + + + + +
      //      5923078164 0628620899 8628034825 3421170679
+ +127 + + + + + +
      // PHI = (1 + rootsquare(5)) / 2 = 1,618 033 988 7
+ +128 + + + + + +
      // PHI = 1,618 033 988 749 894 848 204 586 834 365 638 117 720 309 179 805
+ +129 + + + + + +
      //      762 862 135 448 622 705 260 462 189 024 497 072 072 041
+ +130 + + + + + +
   }
+ +131 + + + + + +
+ +132 + + + + + +
   // **********************************************************************
+ +133 + + + + + +
   // ******** attributes
+ +134 + + + + + +
+ +135 + + + + + +
   // **********************************************************************
+ +136 + + + + + +
   public int getMyPrintCount()
+ +137 + + + + + +
   {
+ +138 + + +1 + +1. getMyPrintCount : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyPrintCount);
+ +139 + + + + + +
   }
+ +140 + + + + + +
+ +141 + + + + + +
   // **********************************************************************
+ +142 + + + + + +
   public String getMyTracesName()
+ +143 + + + + + +
   {
+ +144 + + +1 + +1. getMyTracesName : mutated return of Object value for eu/stamp_project/examples/dhell/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTracesName);
+ +145 + + + + + +
   }
+ +146 + + + + + +
+ +147 + + + + + +
   // **********************************************************************
+ +148 + + + + + +
   public boolean getShouldPrintOnStdout()
+ +149 + + + + + +
   {
+ +150 + + +1 + +1. getShouldPrintOnStdout : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
+ +
+
      return(ShouldPrintOnStdout);
+ +151 + + + + + +
   }
+ +152 + + + + + +
+ +153 + + + + + +
   // **********
+ +154 + + + + + +
   public void setShouldPrintOnStdout(boolean value)
+ +155 + + + + + +
   {
+ +156 + + + + + +
      ShouldPrintOnStdout = value;
+ +157 + + + + + +
   }
+ +158 + + + + + +
+ +159 + + + + + +
   // **********************************************************************
+ +160 + + + + + +
   // ******** associations
+ +161 + + + + + +
+ +162 + + + + + +
   // **********************************************************************
+ +163 + + + + + +
   public int cardMyTraces()
+ +164 + + + + + +
   {
+ +165 + + + + + +
      int theCard = 0;
+ +166 + + + + + +
+ +167 + + +1 + +1. cardMyTraces : negated conditional → KILLED
+ +
+
      if (MyTraces != null)
+ +168 + + + + + +
      {
+ +169 + + + + + +
         theCard = 1;
+ +170 + + + + + +
      }
+ +171 + + + + + +
+ +172 + + +1 + +1. cardMyTraces : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(theCard);
+ +173 + + + + + +
   }
+ +174 + + + + + +
+ +175 + + + + + +
   // **********
+ +176 + + + + + +
   public MyStorage getMyTraces()
+ +177 + + + + + +
   {
+ +178 + + +1 + +1. getMyTraces : mutated return of Object value for eu/stamp_project/examples/dhell/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTraces);
+ +179 + + + + + +
   }
+ +180 + + + + + +
+ +181 + + + + + +
   // **********************************************************************
+ +182 + + + + + +
   // protected
+ +183 + + + + + +
   // **********************************************************************
+ +184 + + + + + +
   // ******** methods
+ +185 + + + + + +
+ +186 + + + + + +
   // **********************************************************************
+ +187 + + + + + +
   protected void myPrint(String message)
+ +188 + + + + + +
   {
+ +189 + + +1 + +1. myPrint : negated conditional → SURVIVED
+ +
+
      if (getShouldPrintOnStdout())
+ +190 + + + + + +
      {
+ +191 + + +1 + +1. myPrint : removed call to java/io/PrintStream::println → SURVIVED
+ +
+
         System.out.println(message);
+ +192 + + + + + +
      }
+ +193 + + +1 + +1. myPrint : removed call to eu/stamp_project/examples/dhell/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(message);
+ +194 + + + + + +
   }
+ +195 + + + + + +
+ +196 + + + + + +
   // **********************************************************************
+ +197 + + + + + +
   // private
+ +198 + + + + + +
   // **********************************************************************
+ +199 + + + + + +
   // ******** attributes
+ +200 + + + + + +
   private int MyPrintCount;
+ +201 + + + + + +
   private String MyTracesName;
+ +202 + + + + + +
   private MyStorage MyTraces;
+ +203 + + + + + +
   private boolean ShouldPrintOnStdout;
+ +204 + + + + + +
}

Mutations

25 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dhell.HelloAppTest)
removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → KILLED

+
43 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest)
removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → KILLED

+
61 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → SURVIVED

+
79 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dhell/MyStorage::deleteFile → SURVIVED

+
96 + + + +

1.1
Location : run
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : run
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dhell.HelloAppTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dhell.HelloAppTest)
removed call to eu/stamp_project/examples/dhell/MyStorage::addData → KILLED

+
107 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dhell.HelloAppTest)
changed conditional boundary → KILLED

2.2
Location : run
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3.3
Location : run
Killed by : none
negated conditional → TIMED_OUT

+
112 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dhell.HelloAppTest)
removed call to eu/stamp_project/examples/dhell/HelloApp::myPrint → KILLED

+
113 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dhell.HelloAppTest)
removed call to eu/stamp_project/examples/dhell/HelloApp::myPrint → KILLED

+
114 + + + +

1.1
Location : run
Killed by : none
removed call to eu/stamp_project/examples/dhell/HelloApp::myPrint → SURVIVED

+
116 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dhell.HelloAppTest)
removed call to eu/stamp_project/examples/dhell/MyStorage::saveData → KILLED

+
138 + + + +

1.1
Location : getMyPrintCount
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
144 + + + +

1.1
Location : getMyTracesName
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dhell/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
150 + + + +

1.1
Location : getShouldPrintOnStdout
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

+
167 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest)
negated conditional → KILLED

+
172 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
178 + + + +

1.1
Location : getMyTraces
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dhell.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dhell/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
189 + + + +

1.1
Location : myPrint
Killed by : none
negated conditional → SURVIVED

+
191 + + + +

1.1
Location : myPrint
Killed by : none
removed call to java/io/PrintStream::println → SURVIVED

+
193 + + + +

1.1
Location : myPrint
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dhell.HelloAppTest)
removed call to eu/stamp_project/examples/dhell/MyStorage::addData → KILLED

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dhell.HelloAppTest) (4 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dhell.HelloAppTest) (3 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dhell.HelloAppTest) (12 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/MyGod.java.html b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/MyGod.java.html new file mode 100644 index 0000000..28a0f03 --- /dev/null +++ b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/MyGod.java.html @@ -0,0 +1,2057 @@ + + + + + + + + +

MyGod.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dhell;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import eu.stamp_project.examples.dhell.HelloApp;
+ +5 + + + + + +
import eu.stamp_project.examples.dhell.MyLogger;
+ +6 + + + + + +
+ +7 + + + + + +
// **********************************************************************
+ +8 + + + + + +
public class MyGod
+ +9 + + + + + +
{
+ +10 + + + + + +
   // **********************************************************************
+ +11 + + + + + +
   // public
+ +12 + + + + + +
   // **********************************************************************
+ +13 + + + + + +
   // ******** methods
+ +14 + + + + + +
+ +15 + + + + + +
   // **********************************************************************
+ +16 + + + + + +
   public static void main(String[] args)
+ +17 + + + + + +
   {
+ +18 + + + + + +
      int indentCount = 1;
+ +19 + + + + + +
      int argIndex = 0;
+ +20 + + + + + +
      String indentArg = "";
+ +21 + + + + + +
      String fileName = "";
+ +22 + + + + + +
      String logLevel = "WARNING";
+ +23 + + + + + +
      boolean printOnStdout = true;
+ +24 + + + + + +
      boolean shouldRun = true;
+ +25 + + + + + +
+ +26 + + +2 + +1. main : changed conditional boundary → NO_COVERAGE
+2. main : negated conditional → NO_COVERAGE
+ +
+
      while (argIndex < args.length)
+ +27 + + + + + +
      {
+ +28 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         if (args[argIndex].equals("-h"))
+ +29 + + + + + +
         {
+ +30 + + +1 + +1. main : removed call to eu/stamp_project/examples/dhell/MyGod::printHelp → NO_COVERAGE
+ +
+
            printHelp();
+ +31 + + + + + +
            shouldRun = false;
+ +32 + + + + + +
            argIndex = args.length;
+ +33 + + + + + +
         }
+ +34 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (args[argIndex].equals("-no_stdout"))
+ +35 + + + + + +
         {
+ +36 + + + + + +
            printOnStdout = false;
+ +37 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 1;
+ +38 + + + + + +
         }
+ +39 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (args[argIndex].equals("-log"))
+ +40 + + + + + +
         {
+ +41 + + +3 + +1. main : changed conditional boundary → NO_COVERAGE
+2. main : Replaced integer addition with subtraction → NO_COVERAGE
+3. main : negated conditional → NO_COVERAGE
+ +
+
            if (argIndex + 1 < args.length)
+ +42 + + + + + +
            {
+ +43 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
               logLevel = args[argIndex + 1];
+ +44 + + + + + +
            }
+ +45 + + + + + +
            else
+ +46 + + + + + +
            {
+ +47 + + +1 + +1. main : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
               System.err.println("Missing argument: -log <level>, -h for help");
+ +48 + + +1 + +1. main : removed call to java/lang/System::exit → NO_COVERAGE
+ +
+
               System.exit(1);
+ +49 + + + + + +
            }
+ +50 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 2;
+ +51 + + + + + +
         }
+ +52 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (indentArg.length() == 0)
+ +53 + + + + + +
         {
+ +54 + + + + + +
            indentArg = args[argIndex];
+ +55 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 1;
+ +56 + + + + + +
         }
+ +57 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (fileName.length() == 0)
+ +58 + + + + + +
         {
+ +59 + + + + + +
            fileName = args[argIndex];
+ +60 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 1;
+ +61 + + + + + +
         }
+ +62 + + + + + +
         else
+ +63 + + + + + +
         {
+ +64 + + +1 + +1. main : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
            System.err.println("Unknown argument: " + args[argIndex] + ", -h for help");
+ +65 + + +1 + +1. main : removed call to java/lang/System::exit → NO_COVERAGE
+ +
+
            System.exit(1);
+ +66 + + + + + +
         }
+ +67 + + + + + +
      }
+ +68 + + + + + +
+ +69 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
      if (shouldRun)
+ +70 + + + + + +
      {
+ +71 + + +2 + +1. main : changed conditional boundary → NO_COVERAGE
+2. main : negated conditional → NO_COVERAGE
+ +
+
         if (indentArg.length() > 0)
+ +72 + + + + + +
         {
+ +73 + + + + + +
            try
+ +74 + + + + + +
            {
+ +75 + + + + + +
               indentCount = Integer.parseInt(indentArg);
+ +76 + + + + + +
            }
+ +77 + + + + + +
            catch (NumberFormatException e)
+ +78 + + + + + +
            {
+ +79 + + +1 + +1. main : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
               System.err.println("Argument " + indentArg +
+ +80 + + + + + +
                  " must be an integer, -h for help");
+ +81 + + +1 + +1. main : removed call to java/lang/System::exit → NO_COVERAGE
+ +
+
               System.exit(1);
+ +82 + + + + + +
            }
+ +83 + + + + + +
         }
+ +84 + + + + + +
+ +85 + + +1 + +1. main : removed call to eu/stamp_project/examples/dhell/MyLogger::initLogs → NO_COVERAGE
+ +
+
         MyLogger.initLogs(logLevel);
+ +86 + + + + + +
+ +87 + + + + + +
         HelloApp myApp = new HelloApp(indentCount, fileName);
+ +88 + + +1 + +1. main : removed call to eu/stamp_project/examples/dhell/HelloApp::setShouldPrintOnStdout → NO_COVERAGE
+ +
+
         myApp.setShouldPrintOnStdout(printOnStdout);
+ +89 + + +1 + +1. main : removed call to eu/stamp_project/examples/dhell/HelloApp::run → NO_COVERAGE
+ +
+
         myApp.run();
+ +90 + + + + + +
      }
+ +91 + + + + + +
   }
+ +92 + + + + + +
+ +93 + + + + + +
   // **********************************************************************
+ +94 + + + + + +
   public static void printHelp()
+ +95 + + + + + +
   {
+ +96 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("eu.stamp_project.examples.dhell.MyGod");
+ +97 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("Print on stdout a 'Hello World !' message formatted according to");
+ +98 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("<indentation_count>, and generate an output file");
+ +99 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("");
+ +100 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("args: [-h | <indentation_count> [<file_name>] [-no_stdout] [-log <level>]]");
+ +101 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   -h: this help");
+ +102 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   <indentation_count>: number of '-' for message indentation, default is 1");
+ +103 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   <file_name>: output file name, default is my_storage.txt");
+ +104 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      output file name contains <indentation_count> and the stdout");
+ +105 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   -no_stdout: if specified, do not print anything on stdout,");
+ +106 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      generate only the output file");
+ +107 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   -log <level>: specify the level of information to log,");
+ +108 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      <level> is one of {OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL}, default is WARNING");
+ +109 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      generate a log file, dhell.log, in the current directory");
+ +110 + + + + + +
   }
+ +111 + + + + + +
}

Mutations

26 + + + +

1.1
Location : main
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
28 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
30 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dhell/MyGod::printHelp → NO_COVERAGE

+
34 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
37 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
39 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
41 + + + +

1.1
Location : main
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

3.3
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
43 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
47 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
48 + + + +

1.1
Location : main
Killed by : none
removed call to java/lang/System::exit → NO_COVERAGE

+
50 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
52 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
55 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
57 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
60 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
64 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
65 + + + +

1.1
Location : main
Killed by : none
removed call to java/lang/System::exit → NO_COVERAGE

+
69 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
71 + + + +

1.1
Location : main
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
79 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
81 + + + +

1.1
Location : main
Killed by : none
removed call to java/lang/System::exit → NO_COVERAGE

+
85 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dhell/MyLogger::initLogs → NO_COVERAGE

+
88 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dhell/HelloApp::setShouldPrintOnStdout → NO_COVERAGE

+
89 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dhell/HelloApp::run → NO_COVERAGE

+
96 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
97 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
98 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
99 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
100 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
101 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
102 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
103 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
104 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
105 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
106 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
107 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
108 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
109 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/MyStorage.java.html b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/MyStorage.java.html new file mode 100644 index 0000000..941e024 --- /dev/null +++ b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/MyStorage.java.html @@ -0,0 +1,3544 @@ + + + + + + + + +

MyStorage.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dhell;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import java.io.PrintStream;
+ +5 + + + + + +
import java.io.BufferedReader;
+ +6 + + + + + +
import java.io.FileReader;
+ +7 + + + + + +
import java.io.IOException;
+ +8 + + + + + +
import java.io.File;
+ +9 + + + + + +
import java.util.*;
+ +10 + + + + + +
+ +11 + + + + + +
import eu.stamp_project.examples.dhell.MyLogger;
+ +12 + + + + + +
+ +13 + + + + + +
// **********************************************************************
+ +14 + + + + + +
public class MyStorage
+ +15 + + + + + +
{
+ +16 + + + + + +
   // **********************************************************************
+ +17 + + + + + +
   // public
+ +18 + + + + + +
   // **********************************************************************
+ +19 + + + + + +
   // ******** methods
+ +20 + + + + + +
+ +21 + + + + + +
   // **********************************************************************
+ +22 + + + + + +
   public static void deleteFile(String fileName)
+ +23 + + + + + +
   {
+ +24 + + + + + +
      String methodName = "deleteFile";
+ +25 + + + + + +
      MyLogger.Instance.entering("MyStorage", methodName);
+ +26 + + + + + +
+ +27 + + + + + +
      File theFile = null;
+ +28 + + + + + +
+ +29 + + + + + +
      // delete file if it already exists
+ +30 + + + + + +
      theFile = new File(fileName);
+ +31 + + +1 + +1. deleteFile : negated conditional → KILLED
+ +
+
      if (theFile.exists())
+ +32 + + + + + +
      {
+ +33 + + + + + +
         theFile.delete();
+ +34 + + + + + +
      }
+ +35 + + + + + +
+ +36 + + + + + +
      MyLogger.Instance.exiting("MyStorage", methodName);
+ +37 + + + + + +
   }
+ +38 + + + + + +
+ +39 + + + + + +
   // **********************************************************************
+ +40 + + + + + +
   public MyStorage()
+ +41 + + + + + +
   {
+ +42 + + + + + +
      String methodName = "MyStorage";
+ +43 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +44 + + + + + +
+ +45 + + + + + +
      FileName = "my_storage.txt";
+ +46 + + + + + +
      MyData = new ArrayList<String>();
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public MyStorage(String fileName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "MyStorage_String";
+ +55 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      this.FileName = fileName;
+ +58 + + + + + +
      MyData = new ArrayList<String>();
+ +59 + + + + + +
+ +60 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +61 + + + + + +
   }
+ +62 + + + + + +
+ +63 + + + + + +
   // **********************************************************************
+ +64 + + + + + +
   public void readData()
+ +65 + + + + + +
   {
+ +66 + + + + + +
      String methodName = "readData";
+ +67 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +68 + + + + + +
+ +69 + + + + + +
      BufferedReader myBuffer = null;
+ +70 + + + + + +
      FileReader myFile = null;
+ +71 + + + + + +
      String currentLine;
+ +72 + + + + + +
+ +73 + + + + + +
      try
+ +74 + + + + + +
      {
+ +75 + + + + + +
         myFile = new FileReader(FileName);
+ +76 + + + + + +
         myBuffer = new BufferedReader(myFile);
+ +77 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         while ((currentLine = myBuffer.readLine()) != null)
+ +78 + + + + + +
         {
+ +79 + + +1 + +1. readData : removed call to eu/stamp_project/examples/dhell/MyStorage::addData → KILLED
+ +
+
            addData(currentLine);
+ +80 + + + + + +
         }
+ +81 + + + + + +
      }
+ +82 + + + + + +
      catch(IOException e)
+ +83 + + + + + +
      {
+ +84 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot read " + FileName);
+ +85 + + + + + +
      }
+ +86 + + + + + +
+ +87 + + + + + +
      try
+ +88 + + + + + +
      {
+ +89 + + +1 + +1. readData : negated conditional → SURVIVED
+ +
+
         if (myBuffer != null)
+ +90 + + + + + +
         {
+ +91 + + +1 + +1. readData : removed call to java/io/BufferedReader::close → SURVIVED
+ +
+
            myBuffer.close();
+ +92 + + + + + +
         }
+ +93 + + +1 + +1. readData : negated conditional → SURVIVED
+ +
+
         if (myFile != null)
+ +94 + + + + + +
         {
+ +95 + + +1 + +1. readData : removed call to java/io/FileReader::close → SURVIVED
+ +
+
            myFile.close();
+ +96 + + + + + +
         }
+ +97 + + + + + +
      }
+ +98 + + + + + +
      catch(IOException e)
+ +99 + + + + + +
      {
+ +100 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: closing " + FileName);
+ +101 + + + + + +
      }
+ +102 + + + + + +
+ +103 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +104 + + + + + +
   }
+ +105 + + + + + +
+ +106 + + + + + +
   // **********************************************************************
+ +107 + + + + + +
   public void saveData()
+ +108 + + + + + +
   {
+ +109 + + + + + +
      String methodName = "saveData";
+ +110 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +111 + + + + + +
+ +112 + + + + + +
      try
+ +113 + + + + + +
      {
+ +114 + + + + + +
         PrintStream writer = new PrintStream(new File(FileName));
+ +115 + + +2 + +1. saveData : changed conditional boundary → KILLED
+2. saveData : negated conditional → KILLED
+ +
+
         for (int i = 0; i < getDataSize(); i++)
+ +116 + + + + + +
         {
+ +117 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → KILLED
+ +
+
            writer.println(getData(i));
+ +118 + + + + + +
         }
+ +119 + + +1 + +1. saveData : removed call to java/io/PrintStream::close → SURVIVED
+ +
+
         writer.close();
+ +120 + + + + + +
      }
+ +121 + + + + + +
      catch(IOException e)
+ +122 + + + + + +
      {
+ +123 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot write into " + FileName);
+ +124 + + + + + +
      }
+ +125 + + + + + +
+ +126 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +127 + + + + + +
   }
+ +128 + + + + + +
+ +129 + + + + + +
   // **********************************************************************
+ +130 + + + + + +
   public boolean isEqual(MyStorage anotherStorage)
+ +131 + + + + + +
   {
+ +132 + + + + + +
      String methodName = "isEqual";
+ +133 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +134 + + + + + +
+ +135 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == anotherStorage.getDataSize());
+ +136 + + + + + +
+ +137 + + +4 + +1. isEqual : negated conditional → SURVIVED
+2. isEqual : negated conditional → SURVIVED
+3. isEqual : changed conditional boundary → KILLED
+4. isEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +138 + + + + + +
      {
+ +139 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(anotherStorage.getData(i))))
+ +140 + + + + + +
         {
+ +141 + + + + + +
            areEqual = false;
+ +142 + + + + + +
         } 
+ +143 + + + + + +
      }
+ +144 + + + + + +
+ +145 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +146 + + +1 + +1. isEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +147 + + + + + +
   }
+ +148 + + + + + +
+ +149 + + + + + +
   // **********************************************************************
+ +150 + + + + + +
   public boolean dataAreEqual(ArrayList<String> otherData)
+ +151 + + + + + +
   {
+ +152 + + + + + +
      String methodName = "dataAreEqual";
+ +153 + + + + + +
      MyLogger.Instance.entering(getClass().getName(), methodName);
+ +154 + + + + + +
+ +155 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == otherData.size());
+ +156 + + + + + +
+ +157 + + +4 + +1. dataAreEqual : negated conditional → SURVIVED
+2. dataAreEqual : negated conditional → SURVIVED
+3. dataAreEqual : changed conditional boundary → KILLED
+4. dataAreEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +158 + + + + + +
      {
+ +159 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(otherData.get(i))))
+ +160 + + + + + +
         {
+ +161 + + + + + +
            areEqual = false;
+ +162 + + + + + +
         } 
+ +163 + + + + + +
      }
+ +164 + + + + + +
+ +165 + + + + + +
      MyLogger.Instance.exiting(getClass().getName(), methodName);
+ +166 + + +1 + +1. dataAreEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +167 + + + + + +
   }
+ +168 + + + + + +
+ +169 + + + + + +
   // **********************************************************************
+ +170 + + + + + +
   // ******** attributes
+ +171 + + + + + +
+ +172 + + + + + +
   // **********************************************************************
+ +173 + + + + + +
   public String getFileName()
+ +174 + + + + + +
   {
+ +175 + + +1 + +1. getFileName : mutated return of Object value for eu/stamp_project/examples/dhell/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(FileName);
+ +176 + + + + + +
   }
+ +177 + + + + + +
+ +178 + + + + + +
   // **********************************************************************
+ +179 + + + + + +
   public int getDataSize()
+ +180 + + + + + +
   {
+ +181 + + +1 + +1. getDataSize : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyData.size());
+ +182 + + + + + +
   }
+ +183 + + + + + +
+ +184 + + + + + +
   // **********************************************************************
+ +185 + + + + + +
   public String getData(int index)
+ +186 + + + + + +
   {
+ +187 + + +1 + +1. getData : mutated return of Object value for eu/stamp_project/examples/dhell/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyData.get(index));
+ +188 + + + + + +
   }
+ +189 + + + + + +
+ +190 + + + + + +
   // **********************************************************************
+ +191 + + + + + +
   public void addData(String aData)
+ +192 + + + + + +
   {
+ +193 + + + + + +
      MyLogger.Instance.finest("IN : DataSize = " + Integer.toString(getDataSize())
+ +194 + + + + + +
         + " - aData = " + aData);
+ +195 + + + + + +
+ +196 + + + + + +
      MyData.add(aData);
+ +197 + + + + + +
+ +198 + + + + + +
      MyLogger.Instance.finest("OUT: DataSize = " + Integer.toString(getDataSize()));
+ +199 + + + + + +
   }
+ +200 + + + + + +
+ +201 + + + + + +
   // **********************************************************************
+ +202 + + + + + +
   public void delData(String aData)
+ +203 + + + + + +
   {
+ +204 + + + + + +
      MyLogger.Instance.finest("IN : DataSize = " + Integer.toString(getDataSize()));
+ +205 + + + + + +
+ +206 + + + + + +
      boolean found = false;
+ +207 + + + + + +
+ +208 + + +4 + +1. delData : changed conditional boundary → NO_COVERAGE
+2. delData : Changed increment from 1 to -1 → NO_COVERAGE
+3. delData : negated conditional → NO_COVERAGE
+4. delData : negated conditional → NO_COVERAGE
+ +
+
      for (int i = 0; i < getDataSize() && ! found; i++)
+ +209 + + + + + +
      {
+ +210 + + +1 + +1. delData : negated conditional → NO_COVERAGE
+ +
+
         if (getData(i).equals(aData))
+ +211 + + + + + +
         {
+ +212 + + + + + +
            MyData.remove(i);
+ +213 + + + + + +
            found = true;
+ +214 + + + + + +
         } 
+ +215 + + + + + +
      } 
+ +216 + + + + + +
+ +217 + + + + + +
      MyLogger.Instance.finest("OUT: DataSize = " + Integer.toString(getDataSize())
+ +218 + + + + + +
         + " - found = " + Boolean.toString(found));
+ +219 + + + + + +
   }
+ +220 + + + + + +
+ +221 + + + + + +
   // **********************************************************************
+ +222 + + + + + +
   // private
+ +223 + + + + + +
   // **********************************************************************
+ +224 + + + + + +
   // ******** attributes
+ +225 + + + + + +
   private String FileName;
+ +226 + + + + + +
   private ArrayList<String> MyData;
+ +227 + + + + + +
}

Mutations

31 + + + +

1.1
Location : deleteFile
Killed by : eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest)
negated conditional → KILLED

+
77 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
negated conditional → KILLED

+
79 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
removed call to eu/stamp_project/examples/dhell/MyStorage::addData → KILLED

+
84 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
89 + + + +

1.1
Location : readData
Killed by : none
negated conditional → SURVIVED

+
91 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/BufferedReader::close → SURVIVED

+
93 + + + +

1.1
Location : readData
Killed by : none
negated conditional → SURVIVED

+
95 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/FileReader::close → SURVIVED

+
100 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
115 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : saveData
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
removed call to java/io/PrintStream::println → KILLED

+
119 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::close → SURVIVED

+
123 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
135 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
negated conditional → KILLED

+
137 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : isEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : isEqual
Killed by : none
negated conditional → SURVIVED

+
139 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
negated conditional → KILLED

+
146 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
155 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testAddData(eu.stamp_project.examples.dhell.MyStorageTest)
negated conditional → KILLED

+
157 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testAddData(eu.stamp_project.examples.dhell.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testAddData(eu.stamp_project.examples.dhell.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

+
159 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testAddData(eu.stamp_project.examples.dhell.MyStorageTest)
negated conditional → KILLED

+
166 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testAddData(eu.stamp_project.examples.dhell.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
175 + + + +

1.1
Location : getFileName
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dhell.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dhell/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
181 + + + +

1.1
Location : getDataSize
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dhell.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
187 + + + +

1.1
Location : getData
Killed by : eu.stamp_project.examples.dhell.MyStorageTest.testAddData(eu.stamp_project.examples.dhell.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dhell/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
208 + + + +

1.1
Location : delData
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : delData
Killed by : none
Changed increment from 1 to -1 → NO_COVERAGE

3.3
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
210 + + + +

1.1
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dhell.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dhell.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dhell.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dhell.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dhell.HelloAppTest) (4 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dhell.HelloAppTest) (3 ms)
  • eu.stamp_project.examples.dhell.MyStorageTest.testAddData(eu.stamp_project.examples.dhell.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dhell.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dhell.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dhell.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dhell.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dhell.HelloAppTest) (12 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/index.html b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/index.html new file mode 100644 index 0000000..9cbd6e7 --- /dev/null +++ b/test_dir/dhell/target/pit-reports/201804231936/eu.stamp_project.examples.dhell/index.html @@ -0,0 +1,69 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dhell

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
364%
139/218
35%
35/101
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
HelloApp.java
93%
71/76
70%
16/23
MyGod.java
0%
0/57
0%
0/42
MyStorage.java
80%
68/85
53%
19/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dhell/target/pit-reports/201804231936/index.html b/test_dir/dhell/target/pit-reports/201804231936/index.html new file mode 100644 index 0000000..332dbfa --- /dev/null +++ b/test_dir/dhell/target/pit-reports/201804231936/index.html @@ -0,0 +1,59 @@ + + + + + + + +

Pit Test Coverage Report

+ +

Project Summary

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
364%
139/218
35%
35/101
+ + +

Breakdown by Package

+ + + + + + + + + + + + + + + + + + + +
NameNumber of ClassesLine CoverageMutation Coverage
eu.stamp_project.examples.dhell3
64%
139/218
35%
35/101
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dhell/target/pit-reports/201804231936/style.css b/test_dir/dhell/target/pit-reports/201804231936/style.css new file mode 100644 index 0000000..cd65bd3 --- /dev/null +++ b/test_dir/dhell/target/pit-reports/201804231936/style.css @@ -0,0 +1,563 @@ +html, body, div, span, p, blockquote, pre { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body{ + line-height: 1; + color: black; + background: white; + margin-left: 20px; +} + +.src { + border: 1px solid #dddddd; + padding-top: 10px; + padding-right: 5px; + padding-left: 5px; + font-family: Consolas, Courier, monospace; +} + +.covered { + background-color: #ddffdd; +} + +.uncovered { + background-color: #ffdddd; +} + +.killed, .KILLED { + background-color: #aaffaa; +} + +.survived, .SURVIVED { + background-color: #ffaaaa; +} + +.uncertain { + background-color: #dde7ef; +} + +.run_error { + background-color: #dde7ef; +} + +.na { + background-color: #eeeeee; +} + +.timed_out { + background-color: #dde7ef; +} + +.non_viable { + background-color: #aaffaa; +} + +.memory_error { + background-color: #dde7ef; +} + +.not_started { + background-color: #dde7ef; color : red +} + +.no_coverage { + background-color: #ffaaaa; +} + +.tests { + width: 50%; + float: left; +} + +.mutees { + float: right; + width: 50%; +} + +.unit { + padding-top: 20px; + clear: both; +} + +.coverage_bar { + display: inline-block; + height: 1.1em; + width: 130px; + background: #FAA; + margin: 0 5px; + vertical-align: middle; + border: 1px solid #AAA; + position: relative; +} + +.coverage_complete { + display: inline-block; + height: 100%; + background: #DFD; + float: left; +} + +.coverage_legend { + position: absolute; + height: 100%; + width: 100%; + left: 0; + top: 0; + text-align: center; +} + +.line, .mut { + vertical-align: middle; +} + +.coverage_percentage { + display: inline-block; + width: 3em; + text-align: right; +} + +.pop { + outline:none; +} + +.pop strong { + line-height: 30px; +} + +.pop { + text-decoration: none; +} + +.pop span { + z-index: 10; + display: none; + padding: 14px 20px; + margin-top: -30px; + margin-left: 28px; + width: 800px; + line-height: 16px; + word-wrap: break-word; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -moz-box-shadow: 5px 5px 8px #CCC; + -webkit-box-shadow: 5px 5px 8px #CCC; + box-shadow: 5px 5px 8px #CCC; +} + +.pop:hover span { + display: inline; + position: absolute; + color: #111; + border: 1px solid #DCA; + background: #fffAF0; +} + +.width-1 { + width: 1%; +} + +.width-2 { + width: 2%; +} + +.width-3 { + width: 3%; +} + +.width-4 { + width: 4%; +} + +.width-5 { + width: 5%; +} + +.width-6 { + width: 6%; +} + +.width-7 { + width: 7%; +} + +.width-8 { + width: 8%; +} + +.width-9 { + width: 9%; +} + +.width-10 { + width: 10%; +} + +.width-11 { + width: 11%; +} + +.width-12 { + width: 12%; +} + +.width-13 { + width: 13%; +} + +.width-14 { + width: 14%; +} + +.width-15 { + width: 15%; +} + +.width-16 { + width: 16%; +} + +.width-17 { + width: 17%; +} + +.width-18 { + width: 18%; +} + +.width-19 { + width: 19%; +} + +.width-20 { + width: 20%; +} + +.width-21 { + width: 21%; +} + +.width-22 { + width: 22%; +} + +.width-23 { + width: 23%; +} + +.width-24 { + width: 24%; +} + +.width-25 { + width: 25%; +} + +.width-26 { + width: 26%; +} + +.width-27 { + width: 27%; +} + +.width-28 { + width: 28%; +} + +.width-29 { + width: 29%; +} + +.width-30 { + width: 30%; +} + +.width-31 { + width: 31%; +} + +.width-32 { + width: 32%; +} + +.width-33 { + width: 33%; +} + +.width-34 { + width: 34%; +} + +.width-35 { + width: 35%; +} + +.width-36 { + width: 36%; +} + +.width-37 { + width: 37%; +} + +.width-38 { + width: 38%; +} + +.width-39 { + width: 39%; +} + +.width-40 { + width: 40%; +} + +.width-41 { + width: 41%; +} + +.width-42 { + width: 42%; +} + +.width-43 { + width: 43%; +} + +.width-44 { + width: 44%; +} + +.width-45 { + width: 45%; +} + +.width-46 { + width: 46%; +} + +.width-47 { + width: 47%; +} + +.width-48 { + width: 48%; +} + +.width-49 { + width: 49%; +} + +.width-50 { + width: 50%; +} + +.width-51 { + width: 51%; +} + +.width-52 { + width: 52%; +} + +.width-53 { + width: 53%; +} + +.width-54 { + width: 54%; +} + +.width-55 { + width: 55%; +} + +.width-56 { + width: 56%; +} + +.width-57 { + width: 57%; +} + +.width-58 { + width: 58%; +} + +.width-59 { + width: 59%; +} + +.width-60 { + width: 60%; +} + +.width-61 { + width: 61%; +} + +.width-62 { + width: 62%; +} + +.width-63 { + width: 63%; +} + +.width-64 { + width: 64%; +} + +.width-65 { + width: 65%; +} + +.width-66 { + width: 66%; +} + +.width-67 { + width: 67%; +} + +.width-68 { + width: 68%; +} + +.width-69 { + width: 69%; +} + +.width-70 { + width: 70%; +} + +.width-71 { + width: 71%; +} + +.width-72 { + width: 72%; +} + +.width-73 { + width: 73%; +} + +.width-74 { + width: 74%; +} + +.width-75 { + width: 75%; +} + +.width-76 { + width: 76%; +} + +.width-77 { + width: 77%; +} + +.width-78 { + width: 78%; +} + +.width-79 { + width: 79%; +} + +.width-80 { + width: 80%; +} + +.width-81 { + width: 81%; +} + +.width-82 { + width: 82%; +} + +.width-83 { + width: 83%; +} + +.width-84 { + width: 84%; +} + +.width-85 { + width: 85%; +} + +.width-86 { + width: 86%; +} + +.width-87 { + width: 87%; +} + +.width-88 { + width: 88%; +} + +.width-89 { + width: 89%; +} + +.width-90 { + width: 90%; +} + +.width-91 { + width: 91%; +} + +.width-92 { + width: 92%; +} + +.width-93 { + width: 93%; +} + +.width-94 { + width: 94%; +} + +.width-95 { + width: 95%; +} + +.width-96 { + width: 96%; +} + +.width-97 { + width: 97%; +} + +.width-98 { + width: 98%; +} + +.width-99 { + width: 99%; +} + +.width-100 { + width: 100%; +} \ No newline at end of file diff --git a/test_dir/dhell/target/surefire-reports/TEST-eu.stamp_project.examples.dhell.HelloAppTest.xml b/test_dir/dhell/target/surefire-reports/TEST-eu.stamp_project.examples.dhell.HelloAppTest.xml new file mode 100644 index 0000000..345aa2f --- /dev/null +++ b/test_dir/dhell/target/surefire-reports/TEST-eu.stamp_project.examples.dhell.HelloAppTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dhell/target/surefire-reports/TEST-eu.stamp_project.examples.dhell.MyStorageTest.xml b/test_dir/dhell/target/surefire-reports/TEST-eu.stamp_project.examples.dhell.MyStorageTest.xml new file mode 100644 index 0000000..8a7f96b --- /dev/null +++ b/test_dir/dhell/target/surefire-reports/TEST-eu.stamp_project.examples.dhell.MyStorageTest.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dhell/target/surefire-reports/eu.stamp_project.examples.dhell.HelloAppTest.txt b/test_dir/dhell/target/surefire-reports/eu.stamp_project.examples.dhell.HelloAppTest.txt new file mode 100644 index 0000000..54b69a4 --- /dev/null +++ b/test_dir/dhell/target/surefire-reports/eu.stamp_project.examples.dhell.HelloAppTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dhell.HelloAppTest +------------------------------------------------------------------------------- +Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec - in eu.stamp_project.examples.dhell.HelloAppTest diff --git a/test_dir/dhell/target/surefire-reports/eu.stamp_project.examples.dhell.MyStorageTest.txt b/test_dir/dhell/target/surefire-reports/eu.stamp_project.examples.dhell.MyStorageTest.txt new file mode 100644 index 0000000..773828e --- /dev/null +++ b/test_dir/dhell/target/surefire-reports/eu.stamp_project.examples.dhell.MyStorageTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dhell.MyStorageTest +------------------------------------------------------------------------------- +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec - in eu.stamp_project.examples.dhell.MyStorageTest diff --git a/test_dir/dhell/target/test-classes/eu/stamp_project/examples/dhell/HelloAppTest.class b/test_dir/dhell/target/test-classes/eu/stamp_project/examples/dhell/HelloAppTest.class new file mode 100644 index 0000000..34263d9 Binary files /dev/null and b/test_dir/dhell/target/test-classes/eu/stamp_project/examples/dhell/HelloAppTest.class differ diff --git a/test_dir/dhell/target/test-classes/eu/stamp_project/examples/dhell/MyStorageTest.class b/test_dir/dhell/target/test-classes/eu/stamp_project/examples/dhell/MyStorageTest.class new file mode 100644 index 0000000..77b7bed Binary files /dev/null and b/test_dir/dhell/target/test-classes/eu/stamp_project/examples/dhell/MyStorageTest.class differ diff --git a/test_dir/dnoo/dnooHello/bar.txt b/test_dir/dnoo/dnooHello/bar.txt new file mode 100644 index 0000000..3a1e9dd --- /dev/null +++ b/test_dir/dnoo/dnooHello/bar.txt @@ -0,0 +1,3 @@ +1st line +a second line, longer than the first one +3rd line with something else: 2, 4, 8, 16 diff --git a/test_dir/dnoo/dnooHello/dnoo.log b/test_dir/dnoo/dnooHello/dnoo.log new file mode 100644 index 0000000..e69de29 diff --git a/test_dir/dnoo/dnooHello/dnoo.log.1 b/test_dir/dnoo/dnooHello/dnoo.log.1 new file mode 100644 index 0000000..c0e54f7 --- /dev/null +++ b/test_dir/dnoo/dnooHello/dnoo.log.1 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooHello/dnoo.log.2 b/test_dir/dnoo/dnooHello/dnoo.log.2 new file mode 100644 index 0000000..e69de29 diff --git a/test_dir/dnoo/dnooHello/dnoo.log.3 b/test_dir/dnoo/dnooHello/dnoo.log.3 new file mode 100644 index 0000000..c0e54f7 --- /dev/null +++ b/test_dir/dnoo/dnooHello/dnoo.log.3 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:59 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooHello/foo3.traces b/test_dir/dnoo/dnooHello/foo3.traces new file mode 100644 index 0000000..5761b1e --- /dev/null +++ b/test_dir/dnoo/dnooHello/foo3.traces @@ -0,0 +1,4 @@ +8 +-------- +-------- Hello World ! +-------- diff --git a/test_dir/dnoo/dnooHello/mixed1.traces b/test_dir/dnoo/dnooHello/mixed1.traces new file mode 100644 index 0000000..a4dacd1 --- /dev/null +++ b/test_dir/dnoo/dnooHello/mixed1.traces @@ -0,0 +1,4 @@ +40 +---------------------------------------- +---------------------------------------- Hello World ! +---------------------------------------- diff --git a/test_dir/dnoo/dnooHello/mixed2.txt b/test_dir/dnoo/dnooHello/mixed2.txt new file mode 100644 index 0000000..4e07ccf --- /dev/null +++ b/test_dir/dnoo/dnooHello/mixed2.txt @@ -0,0 +1,4 @@ +a first line, longer than the first one +2nd line with something else: 2, 4, 8, 16 +3rd line +the end diff --git a/test_dir/dnoo/dnooHello/myHelloApp.traces b/test_dir/dnoo/dnooHello/myHelloApp.traces new file mode 100644 index 0000000..bef630b --- /dev/null +++ b/test_dir/dnoo/dnooHello/myHelloApp.traces @@ -0,0 +1,4 @@ +1 +- +- Hello World ! +- diff --git a/test_dir/dnoo/dnooHello/my_storage.txt b/test_dir/dnoo/dnooHello/my_storage.txt new file mode 100644 index 0000000..48d2d39 --- /dev/null +++ b/test_dir/dnoo/dnooHello/my_storage.txt @@ -0,0 +1,4 @@ +22 +---------------------- +---------------------- Hello World ! +---------------------- diff --git a/test_dir/dnoo/dnooHello/pom.xml b/test_dir/dnoo/dnooHello/pom.xml new file mode 100644 index 0000000..5df0207 --- /dev/null +++ b/test_dir/dnoo/dnooHello/pom.xml @@ -0,0 +1,35 @@ + + + 4.0.0 + + + eu.stamp-project + dnoo + 1.0.1 + + + dnooHello + + + + junit + junit + test + + + + ${project.parent.groupId} + dnooStorage + ${project.parent.version} + + + + ${project.parent.groupId} + dnooLogs + ${project.parent.version} + + + + diff --git a/test_dir/dnoo/dnooHello/src/main/java/eu/stamp_project/examples/dnoo/dnooHello/HelloApp.java b/test_dir/dnoo/dnooHello/src/main/java/eu/stamp_project/examples/dnoo/dnooHello/HelloApp.java new file mode 100644 index 0000000..37525ee --- /dev/null +++ b/test_dir/dnoo/dnooHello/src/main/java/eu/stamp_project/examples/dnoo/dnooHello/HelloApp.java @@ -0,0 +1,204 @@ +package eu.stamp_project.examples.dnoo.dnooHello; + +// ********************************************************************** +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +// ********************************************************************** +public class HelloApp +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** methods + + // ********************************************************************** + public HelloApp() + { + String methodName = "HelloApp"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + MyPrintCount = 1; + MyTraces = null; + MyTracesName = "myHelloApp.traces"; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public HelloApp(int printCount) + { + String methodName = "HelloApp_int"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + MyPrintCount = printCount; + MyTraces = null; + MyTracesName = "myHelloApp.traces"; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public HelloApp(String tracesName) + { + String methodName = "HelloApp_String"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + MyPrintCount = 1; + MyTraces = null; + MyTracesName = tracesName; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public HelloApp(int printCount, String tracesName) + { + String methodName = "HelloApp_int_String"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + MyPrintCount = printCount; + MyTraces = null; + MyTracesName = tracesName; + ShouldPrintOnStdout = true; + MyStorage.deleteFile(MyTracesName); + + MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount) + + " - MyTracesName = " + MyTracesName); + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void run() + { + String methodName = "run"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + String indent = "-"; + String countString = Integer.toString(MyPrintCount); + + if (MyTracesName.length() > 0) + { + MyTraces = new MyStorage(MyTracesName); + } + else + { + MyTraces = new MyStorage(); + } + + MyTraces.addData(countString); + + for (int i = 1; i < MyPrintCount; i++) + { + indent = indent + "-"; + } + MyLogger.getLogger().fine("indent = '" + indent + "'"); + myPrint(indent); + myPrint(indent + " Hello World !"); + myPrint(indent); + + MyTraces.saveData(); + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void computeMyUselessResult() + { + // PI = 3,141 592 653 589 793 - PI (10 chiffres exactes) ~ 104348 / 33215 + // PI = 3,1415926535 8979323846 2643383279 5028841971 6939937510 5820974944 + // 5923078164 0628620899 8628034825 3421170679 + // PHI = (1 + rootsquare(5)) / 2 = 1,618 033 988 7 + // PHI = 1,618 033 988 749 894 848 204 586 834 365 638 117 720 309 179 805 + // 762 862 135 448 622 705 260 462 189 024 497 072 072 041 + } + + // ********************************************************************** + // ******** attributes + + // ********************************************************************** + public int getMyPrintCount() + { + return(MyPrintCount); + } + + // ********************************************************************** + public String getMyTracesName() + { + return(MyTracesName); + } + + // ********************************************************************** + public boolean getShouldPrintOnStdout() + { + return(ShouldPrintOnStdout); + } + + // ********** + public void setShouldPrintOnStdout(boolean value) + { + ShouldPrintOnStdout = value; + } + + // ********************************************************************** + // ******** associations + + // ********************************************************************** + public int cardMyTraces() + { + int theCard = 0; + + if (MyTraces != null) + { + theCard = 1; + } + + return(theCard); + } + + // ********** + public MyStorage getMyTraces() + { + return(MyTraces); + } + + // ********************************************************************** + // protected + // ********************************************************************** + // ******** methods + + // ********************************************************************** + protected void myPrint(String message) + { + if (getShouldPrintOnStdout()) + { + System.out.println(message); + } + MyTraces.addData(message); + } + + // ********************************************************************** + // private + // ********************************************************************** + // ******** attributes + private int MyPrintCount; + private String MyTracesName; + private MyStorage MyTraces; + private boolean ShouldPrintOnStdout; +} diff --git a/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.java b/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.java new file mode 100644 index 0000000..6c0c033 --- /dev/null +++ b/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.java @@ -0,0 +1,160 @@ +package eu.stamp_project.examples.dnoo.dnooHello; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; + +public class HelloAppTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testHelloAppDefault() throws Exception + { + HelloApp myApp = null; + File theFile = null; + + myApp = new HelloApp(); + assertEquals(1, myApp.getMyPrintCount()); + assertEquals("myHelloApp.traces", myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppInt() throws Exception + { + HelloApp myApp = null; + File theFile = null; + int myCount = 8; + + myApp = new HelloApp(myCount); + assertEquals(myCount, myApp.getMyPrintCount()); + assertEquals("myHelloApp.traces", myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppString() throws Exception + { + HelloApp myApp = null; + File theFile = null; + String MyTracesName = "foo1.traces"; + + myApp = new HelloApp(MyTracesName); + assertEquals(1, myApp.getMyPrintCount()); + assertEquals(MyTracesName, myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppIntString() throws Exception + { + HelloApp myApp = null; + File theFile = null; + int myCount = 8; + String MyTracesName = "foo2.traces"; + + myApp = new HelloApp(myCount, MyTracesName); + assertEquals(myCount, myApp.getMyPrintCount()); + assertEquals(MyTracesName, myApp.getMyTracesName()); + assertEquals(0, myApp.cardMyTraces()); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(false, theFile.exists()); + } + + @Test + public void testHelloAppRun1() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + String countString; + // String message; + + myApp = new HelloApp(); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + theFile = new File(myApp.getMyTracesName()); + countString = Integer.toString(myApp.getMyPrintCount()); + assertEquals(true, theFile.exists()); + assertEquals(true, countString.equals(myApp.getMyTraces().getData(0))); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + } + + @Test + public void testHelloAppRun2() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 8; + String countString = Integer.toString(myCount); + String MyTracesName = "foo3.traces"; + // String message; + + myApp = new HelloApp(myCount, MyTracesName); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + theFile = new File(myApp.getMyTracesName()); + assertEquals(true, theFile.exists()); + assertEquals(true, countString.equals(myApp.getMyTraces().getData(0))); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + } + + @Test + public void testHelloAppRun3() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 22; + String countString = Integer.toString(myCount); + String helloString = "---------------------- Hello World !"; + String MyTracesName = "hello_run3.traces"; + // String message; + + myApp = new HelloApp(myCount, MyTracesName); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } + + // ********************************************************************** + // private + // ********************************************************************** + // ******** attributes +} diff --git a/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/MixedTest.java b/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/MixedTest.java new file mode 100644 index 0000000..9e03c0a --- /dev/null +++ b/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/MixedTest.java @@ -0,0 +1,82 @@ +package eu.stamp_project.examples.dnoo.dnooHello; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; + +public class MixedTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testMixed1HelloAppRun() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 40; + String countString = Integer.toString(myCount); + String helloString = "---------------------------------------- Hello World !"; + String MyTracesName = "mixed1.traces"; + // String message; + + myApp = new HelloApp(myCount, MyTracesName); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } + + @Test + public void testMixed2SaveReadData() throws Exception + { + MyStorage myFile = null; + MyStorage mySecondFile = null; + String myFileName = "mixed2.txt"; + File theFile = null; + ArrayList myData = new ArrayList(); + + MyStorage.deleteFile(myFileName); + + // files content + myData.add("a first line, longer than the first one"); + myData.add("2nd line with something else: 2, 4, 8, 16"); + myData.add("3rd line"); + myData.add("the end"); + + // write data in the first file + myFile = new MyStorage(myFileName); + for (int i = 0; i < myData.size(); i++) + { + myFile.addData(myData.get(i)); + } + assertEquals(myData.size(), myFile.getDataSize()); + assertEquals(true, myFile.dataAreEqual(myData)); + + myFile.saveData(); + theFile = new File(myFileName); + assertEquals(true, theFile.exists()); + + // read data in the 2nd file + mySecondFile = new MyStorage(myFileName); + assertEquals(true, theFile.exists()); + + mySecondFile.readData(); + assertEquals(myData.size(), mySecondFile.getDataSize()); + assertEquals(true, mySecondFile.dataAreEqual(myData)); + + // compare content + assertEquals(true, myFile.isEqual(mySecondFile)); + } +} diff --git a/test_dir/dnoo/dnooHello/target/classes/eu/stamp_project/examples/dnoo/dnooHello/HelloApp.class b/test_dir/dnoo/dnooHello/target/classes/eu/stamp_project/examples/dnoo/dnooHello/HelloApp.class new file mode 100644 index 0000000..ead586a Binary files /dev/null and b/test_dir/dnoo/dnooHello/target/classes/eu/stamp_project/examples/dnoo/dnooHello/HelloApp.class differ diff --git a/test_dir/dnoo/dnooHello/target/dnooHello-1.0.1.jar b/test_dir/dnoo/dnooHello/target/dnooHello-1.0.1.jar new file mode 100644 index 0000000..5f8fdec Binary files /dev/null and b/test_dir/dnoo/dnooHello/target/dnooHello-1.0.1.jar differ diff --git a/test_dir/dnoo/dnooHello/target/maven-archiver/pom.properties b/test_dir/dnoo/dnooHello/target/maven-archiver/pom.properties new file mode 100644 index 0000000..705aea9 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Apr 23 19:36:49 CEST 2018 +version=1.0.1 +groupId=eu.stamp-project +artifactId=dnooHello diff --git a/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..d2b4b22 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +eu/stamp_project/examples/dnoo/dnooHello/HelloApp.class diff --git a/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..69343d6 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooHello/src/main/java/eu/stamp_project/examples/dnoo/dnooHello/HelloApp.java diff --git a/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..adbea6c --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,2 @@ +eu/stamp_project/examples/dnoo/dnooHello/MixedTest.class +eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.class diff --git a/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..a5f183e --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/MixedTest.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooHello/src/test/java/eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.java diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html new file mode 100644 index 0000000..9f3af38 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html @@ -0,0 +1,3143 @@ + + + + + + + + +

HelloApp.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooHello;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage;
+ +5 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +6 + + + + + +
+ +7 + + + + + +
// **********************************************************************
+ +8 + + + + + +
public class HelloApp
+ +9 + + + + + +
{
+ +10 + + + + + +
   // **********************************************************************
+ +11 + + + + + +
   // public
+ +12 + + + + + +
   // **********************************************************************
+ +13 + + + + + +
   // ******** methods
+ +14 + + + + + +
+ +15 + + + + + +
   // **********************************************************************
+ +16 + + + + + +
   public HelloApp()
+ +17 + + + + + +
   {
+ +18 + + + + + +
      String methodName = "HelloApp";
+ +19 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +20 + + + + + +
+ +21 + + + + + +
      MyPrintCount = 1;
+ +22 + + + + + +
      MyTraces = null;
+ +23 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +24 + + + + + +
      ShouldPrintOnStdout = true;
+ +25 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +26 + + + + + +
+ +27 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +28 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +29 + + + + + +
+ +30 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // **********************************************************************
+ +34 + + + + + +
   public HelloApp(int printCount)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      String methodName = "HelloApp_int";
+ +37 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +38 + + + + + +
+ +39 + + + + + +
      MyPrintCount = printCount;
+ +40 + + + + + +
      MyTraces = null;
+ +41 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +42 + + + + + +
      ShouldPrintOnStdout = true;
+ +43 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +44 + + + + + +
+ +45 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +46 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public HelloApp(String tracesName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "HelloApp_String";
+ +55 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      MyPrintCount = 1;
+ +58 + + + + + +
      MyTraces = null;
+ +59 + + + + + +
      MyTracesName = tracesName;
+ +60 + + + + + +
      ShouldPrintOnStdout = true;
+ +61 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +62 + + + + + +
+ +63 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +64 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +65 + + + + + +
+ +66 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   public HelloApp(int printCount, String tracesName)
+ +71 + + + + + +
   {
+ +72 + + + + + +
      String methodName = "HelloApp_int_String";
+ +73 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +74 + + + + + +
+ +75 + + + + + +
      MyPrintCount = printCount;
+ +76 + + + + + +
      MyTraces = null;
+ +77 + + + + + +
      MyTracesName = tracesName;
+ +78 + + + + + +
      ShouldPrintOnStdout = true;
+ +79 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +80 + + + + + +
+ +81 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +82 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +83 + + + + + +
+ +84 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +85 + + + + + +
   }
+ +86 + + + + + +
+ +87 + + + + + +
   // **********************************************************************
+ +88 + + + + + +
   public void run()
+ +89 + + + + + +
   {
+ +90 + + + + + +
      String methodName = "run";
+ +91 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +92 + + + + + +
+ +93 + + + + + +
      String indent = "-";
+ +94 + + + + + +
      String countString = Integer.toString(MyPrintCount);
+ +95 + + + + + +
+ +96 + + +2 + +1. run : changed conditional boundary → SURVIVED
+2. run : negated conditional → KILLED
+ +
+
      if (MyTracesName.length() > 0)
+ +97 + + + + + +
      {
+ +98 + + + + + +
         MyTraces = new MyStorage(MyTracesName);
+ +99 + + + + + +
      }
+ +100 + + + + + +
      else
+ +101 + + + + + +
      {
+ +102 + + + + + +
         MyTraces = new MyStorage();
+ +103 + + + + + +
      }
+ +104 + + + + + +
+ +105 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(countString);
+ +106 + + + + + +
+ +107 + + +3 + +1. run : Changed increment from 1 to -1 → TIMED_OUT
+2. run : changed conditional boundary → KILLED
+3. run : negated conditional → KILLED
+ +
+
      for (int i = 1; i < MyPrintCount; i++)
+ +108 + + + + + +
      {
+ +109 + + + + + +
         indent = indent + "-";
+ +110 + + + + + +
      }
+ +111 + + + + + +
      MyLogger.getLogger().fine("indent = '" + indent + "'");
+ +112 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent);
+ +113 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent + " Hello World !");
+ +114 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → SURVIVED
+ +
+
      myPrint(indent);
+ +115 + + + + + +
+ +116 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::saveData → KILLED
+ +
+
      MyTraces.saveData();
+ +117 + + + + + +
+ +118 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +119 + + + + + +
   }
+ +120 + + + + + +
+ +121 + + + + + +
   // **********************************************************************
+ +122 + + + + + +
   public void computeMyUselessResult()
+ +123 + + + + + +
   {
+ +124 + + + + + +
      // PI = 3,141 592 653 589 793 - PI (10 chiffres exactes) ~ 104348 / 33215
+ +125 + + + + + +
      // PI = 3,1415926535 8979323846 2643383279 5028841971 6939937510 5820974944
+ +126 + + + + + +
      //      5923078164 0628620899 8628034825 3421170679
+ +127 + + + + + +
      // PHI = (1 + rootsquare(5)) / 2 = 1,618 033 988 7
+ +128 + + + + + +
      // PHI = 1,618 033 988 749 894 848 204 586 834 365 638 117 720 309 179 805
+ +129 + + + + + +
      //      762 862 135 448 622 705 260 462 189 024 497 072 072 041
+ +130 + + + + + +
   }
+ +131 + + + + + +
+ +132 + + + + + +
   // **********************************************************************
+ +133 + + + + + +
   // ******** attributes
+ +134 + + + + + +
+ +135 + + + + + +
   // **********************************************************************
+ +136 + + + + + +
   public int getMyPrintCount()
+ +137 + + + + + +
   {
+ +138 + + +1 + +1. getMyPrintCount : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyPrintCount);
+ +139 + + + + + +
   }
+ +140 + + + + + +
+ +141 + + + + + +
   // **********************************************************************
+ +142 + + + + + +
   public String getMyTracesName()
+ +143 + + + + + +
   {
+ +144 + + +1 + +1. getMyTracesName : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTracesName);
+ +145 + + + + + +
   }
+ +146 + + + + + +
+ +147 + + + + + +
   // **********************************************************************
+ +148 + + + + + +
   public boolean getShouldPrintOnStdout()
+ +149 + + + + + +
   {
+ +150 + + +1 + +1. getShouldPrintOnStdout : replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED
+ +
+
      return(ShouldPrintOnStdout);
+ +151 + + + + + +
   }
+ +152 + + + + + +
+ +153 + + + + + +
   // **********
+ +154 + + + + + +
   public void setShouldPrintOnStdout(boolean value)
+ +155 + + + + + +
   {
+ +156 + + + + + +
      ShouldPrintOnStdout = value;
+ +157 + + + + + +
   }
+ +158 + + + + + +
+ +159 + + + + + +
   // **********************************************************************
+ +160 + + + + + +
   // ******** associations
+ +161 + + + + + +
+ +162 + + + + + +
   // **********************************************************************
+ +163 + + + + + +
   public int cardMyTraces()
+ +164 + + + + + +
   {
+ +165 + + + + + +
      int theCard = 0;
+ +166 + + + + + +
+ +167 + + +1 + +1. cardMyTraces : negated conditional → KILLED
+ +
+
      if (MyTraces != null)
+ +168 + + + + + +
      {
+ +169 + + + + + +
         theCard = 1;
+ +170 + + + + + +
      }
+ +171 + + + + + +
+ +172 + + +1 + +1. cardMyTraces : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(theCard);
+ +173 + + + + + +
   }
+ +174 + + + + + +
+ +175 + + + + + +
   // **********
+ +176 + + + + + +
   public MyStorage getMyTraces()
+ +177 + + + + + +
   {
+ +178 + + +1 + +1. getMyTraces : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTraces);
+ +179 + + + + + +
   }
+ +180 + + + + + +
+ +181 + + + + + +
   // **********************************************************************
+ +182 + + + + + +
   // protected
+ +183 + + + + + +
   // **********************************************************************
+ +184 + + + + + +
   // ******** methods
+ +185 + + + + + +
+ +186 + + + + + +
   // **********************************************************************
+ +187 + + + + + +
   protected void myPrint(String message)
+ +188 + + + + + +
   {
+ +189 + + +1 + +1. myPrint : negated conditional → SURVIVED
+ +
+
      if (getShouldPrintOnStdout())
+ +190 + + + + + +
      {
+ +191 + + +1 + +1. myPrint : removed call to java/io/PrintStream::println → SURVIVED
+ +
+
         System.out.println(message);
+ +192 + + + + + +
      }
+ +193 + + +1 + +1. myPrint : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(message);
+ +194 + + + + + +
   }
+ +195 + + + + + +
+ +196 + + + + + +
   // **********************************************************************
+ +197 + + + + + +
   // private
+ +198 + + + + + +
   // **********************************************************************
+ +199 + + + + + +
   // ******** attributes
+ +200 + + + + + +
   private int MyPrintCount;
+ +201 + + + + + +
   private String MyTracesName;
+ +202 + + + + + +
   private MyStorage MyTraces;
+ +203 + + + + + +
   private boolean ShouldPrintOnStdout;
+ +204 + + + + + +
}

Mutations

25 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED

+
43 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED

+
61 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED

+
79 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED

+
96 + + + +

1.1
Location : run
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
107 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
changed conditional boundary → KILLED

2.2
Location : run
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3.3
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
112 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED

+
113 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED

+
114 + + + +

1.1
Location : run
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → SURVIVED

+
116 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::saveData → KILLED

+
138 + + + +

1.1
Location : getMyPrintCount
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
144 + + + +

1.1
Location : getMyTracesName
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
150 + + + +

1.1
Location : getShouldPrintOnStdout
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → SURVIVED

+
167 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
172 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
178 + + + +

1.1
Location : getMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
189 + + + +

1.1
Location : myPrint
Killed by : none
negated conditional → SURVIVED

+
191 + + + +

1.1
Location : myPrint
Killed by : none
removed call to java/io/PrintStream::println → SURVIVED

+
193 + + + +

1.1
Location : myPrint
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (14 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooHello/index.html b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooHello/index.html new file mode 100644 index 0000000..c624c65 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooHello/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooHello

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
193%
71/76
70%
16/23
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
HelloApp.java
93%
71/76
70%
16/23
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html new file mode 100644 index 0000000..5f6e953 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html @@ -0,0 +1,3386 @@ + + + + + + + + +

MyLogger.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooLogs;
+ +2 + + + + + +
+ +3 + + + + + +
import java.io.File;
+ +4 + + + + + +
import java.util.Locale;
+ +5 + + + + + +
// **********************************************************************
+ +6 + + + + + +
import java.util.logging.ConsoleHandler;
+ +7 + + + + + +
import java.util.logging.FileHandler;
+ +8 + + + + + +
import java.util.logging.Formatter;
+ +9 + + + + + +
import java.util.logging.Handler;
+ +10 + + + + + +
import java.util.logging.Level;
+ +11 + + + + + +
import java.util.logging.Logger;
+ +12 + + + + + +
import java.util.logging.SimpleFormatter;
+ +13 + + + + + +
+ +14 + + + + + +
// **********************************************************************
+ +15 + + + + + +
public class MyLogger
+ +16 + + + + + +
{
+ +17 + + + + + +
   // **********************************************************************
+ +18 + + + + + +
   // public
+ +19 + + + + + +
   // **********************************************************************
+ +20 + + + + + +
   // ******** attributes
+ +21 + + + + + +
   public static String LogFileName = "dnoo.log";
+ +22 + + + + + +
+ +23 + + + + + +
   // **********************************************************************
+ +24 + + + + + +
   // Level: String, public read/write class attribute
+ +25 + + + + + +
   // levels: "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER",
+ +26 + + + + + +
   //   "FINEST", "ALL"
+ +27 + + + + + +
   public static String getLevel()
+ +28 + + + + + +
   {
+ +29 + + + + + +
      Level currentLevel = getLogger().getLevel();
+ +30 + + +1 + +1. getLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(levelToString(currentLevel));
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // ***********
+ +34 + + + + + +
   public static void setLevel(String level)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      getLogger().setLevel(stringToLevel(level));
+ +37 + + + + + +
      Instance.StdLogHandler.setLevel(stringToLevel(level));
+ +38 + + + + + +
   }
+ +39 + + + + + +
+ +40 + + + + + +
   // **********************************************************************
+ +41 + + + + + +
   // ******** methods
+ +42 + + + + + +
   public static Logger getLogger()
+ +43 + + + + + +
   {
+ +44 + + +1 + +1. getLogger : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → SURVIVED
+ +
+
      initLogs();
+ +45 + + +1 + +1. getLogger : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(Instance.StandardLogger);
+ +46 + + + + + +
   }
+ +47 + + + + + +
+ +48 + + + + + +
   // **********************************************************************
+ +49 + + + + + +
   public static void clearLogs()
+ +50 + + + + + +
   {
+ +51 + + + + + +
      File theFile = null;
+ +52 + + + + + +
+ +53 + + +1 + +1. clearLogs : negated conditional → NO_COVERAGE
+ +
+
      if (Instance != null)
+ +54 + + + + + +
      {
+ +55 + + + + + +
         Instance.StdLogHandler = null;
+ +56 + + + + + +
         Instance.StandardLogger = null;
+ +57 + + + + + +
         Instance = null;
+ +58 + + + + + +
      }
+ +59 + + + + + +
      // delete file if it already exists
+ +60 + + + + + +
      theFile = new File(LogFileName);
+ +61 + + +1 + +1. clearLogs : negated conditional → NO_COVERAGE
+ +
+
      if (theFile.exists())
+ +62 + + + + + +
      {
+ +63 + + + + + +
         theFile.delete();
+ +64 + + + + + +
      }
+ +65 + + + + + +
+ +66 + + + + + +
      return;
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   // protected
+ +71 + + + + + +
   // **********************************************************************
+ +72 + + + + + +
   // ******** attributes
+ +73 + + + + + +
   protected static MyLogger Instance = null;
+ +74 + + + + + +
   protected Logger StandardLogger = null;
+ +75 + + + + + +
   protected Handler StdLogHandler = null;
+ +76 + + + + + +
   protected MyUselessClass MyValues = null;
+ +77 + + + + + +
+ +78 + + + + + +
   // **********************************************************************
+ +79 + + + + + +
   // ******** methods
+ +80 + + + + + +
   protected static Level stringToLevel(String level)
+ +81 + + + + + +
   {
+ +82 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +83 + + + + + +
      Level theLevel = Level.WARNING;
+ +84 + + + + + +
+ +85 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      if (level.equals("OFF"))
+ +86 + + + + + +
      {
+ +87 + + + + + +
         theLevel = Level.OFF;
+ +88 + + + + + +
      }
+ +89 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("SEVERE"))
+ +90 + + + + + +
      {
+ +91 + + + + + +
         theLevel = Level.SEVERE;
+ +92 + + + + + +
      }
+ +93 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("WARNING"))
+ +94 + + + + + +
      {
+ +95 + + + + + +
         theLevel = Level.WARNING;
+ +96 + + + + + +
      }
+ +97 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("INFO"))
+ +98 + + + + + +
      {
+ +99 + + + + + +
         theLevel = Level.INFO;
+ +100 + + + + + +
      }
+ +101 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("CONFIG"))
+ +102 + + + + + +
      {
+ +103 + + + + + +
         theLevel = Level.CONFIG;
+ +104 + + + + + +
      }
+ +105 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINE"))
+ +106 + + + + + +
      {
+ +107 + + + + + +
         theLevel = Level.FINE;
+ +108 + + + + + +
      }
+ +109 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINER"))
+ +110 + + + + + +
      {
+ +111 + + + + + +
         theLevel = Level.FINER;
+ +112 + + + + + +
      }
+ +113 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINEST"))
+ +114 + + + + + +
      {
+ +115 + + + + + +
         theLevel = Level.FINEST;
+ +116 + + + + + +
      }
+ +117 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("ALL"))
+ +118 + + + + + +
      {
+ +119 + + + + + +
         theLevel = Level.ALL;
+ +120 + + + + + +
      }
+ +121 + + + + + +
+ +122 + + +1 + +1. stringToLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +123 + + + + + +
   }
+ +124 + + + + + +
+ +125 + + + + + +
   // **********************************************************************
+ +126 + + + + + +
   protected static String levelToString(Level level)
+ +127 + + + + + +
   {
+ +128 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +129 + + + + + +
      String theLevel = "WARNING";
+ +130 + + + + + +
+ +131 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      if (level == Level.OFF)
+ +132 + + + + + +
      {
+ +133 + + + + + +
         theLevel = "OFF";
+ +134 + + + + + +
      }
+ +135 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.SEVERE)
+ +136 + + + + + +
      {
+ +137 + + + + + +
         theLevel = "SEVERE";
+ +138 + + + + + +
      }
+ +139 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.WARNING)
+ +140 + + + + + +
      {
+ +141 + + + + + +
         theLevel = "WARNING";
+ +142 + + + + + +
      }
+ +143 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.INFO)
+ +144 + + + + + +
      {
+ +145 + + + + + +
         theLevel = "INFO";
+ +146 + + + + + +
      }
+ +147 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.CONFIG)
+ +148 + + + + + +
      {
+ +149 + + + + + +
         theLevel = "CONFIG";
+ +150 + + + + + +
      }
+ +151 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINE)
+ +152 + + + + + +
      {
+ +153 + + + + + +
         theLevel = "FINE";
+ +154 + + + + + +
      }
+ +155 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINER)
+ +156 + + + + + +
      {
+ +157 + + + + + +
         theLevel = "FINER";
+ +158 + + + + + +
      }
+ +159 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINEST)
+ +160 + + + + + +
      {
+ +161 + + + + + +
         theLevel = "FINEST";
+ +162 + + + + + +
      }
+ +163 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.ALL)
+ +164 + + + + + +
      {
+ +165 + + + + + +
         theLevel = "ALL";
+ +166 + + + + + +
      }
+ +167 + + + + + +
+ +168 + + +1 + +1. levelToString : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +169 + + + + + +
   }
+ +170 + + + + + +
+ +171 + + + + + +
   // **********************************************************************
+ +172 + + + + + +
   protected static void initLogs()
+ +173 + + + + + +
   {
+ +174 + + + + + +
      Formatter logFormater = null;
+ +175 + + + + + +
      boolean fileCreated = false;
+ +176 + + +1 + +1. initLogs : removed call to java/util/Locale::setDefault → SURVIVED
+ +
+
      Locale.setDefault(Locale.ENGLISH);
+ +177 + + + + + +
+ +178 + + +1 + +1. initLogs : negated conditional → KILLED
+ +
+
      if (Instance == null)
+ +179 + + + + + +
      {
+ +180 + + + + + +
         Instance = new MyLogger();
+ +181 + + + + + +
         Instance.StandardLogger = Logger.getLogger(MyLogger.class.getName());
+ +182 + + + + + +
         Instance.StandardLogger.setUseParentHandlers(false);
+ +183 + + + + + +
         Instance.MyValues = new MyUselessClass();
+ +184 + + + + + +
   
+ +185 + + + + + +
         try
+ +186 + + + + + +
         {
+ +187 + + + + + +
            Instance.StdLogHandler = new FileHandler(LogFileName, false);
+ +188 + + + + + +
            Instance.StdLogHandler.setFormatter(new SimpleFormatter());
+ +189 + + + + + +
            fileCreated = true;
+ +190 + + + + + +
         }
+ +191 + + + + + +
         catch (Exception e)
+ +192 + + + + + +
         {
+ +193 + + + + + +
            Instance.StdLogHandler = new ConsoleHandler();
+ +194 + + + + + +
         }
+ +195 + + + + + +
         Instance.StandardLogger.addHandler(Instance.StdLogHandler);
+ +196 + + + + + +
   
+ +197 + + + + + +
         Instance.StandardLogger.setLevel(Level.WARNING);
+ +198 + + + + + +
         Instance.StdLogHandler.setLevel(Level.WARNING);
+ +199 + + + + + +
   
+ +200 + + +1 + +1. initLogs : negated conditional → SURVIVED
+ +
+
         if (fileCreated)
+ +201 + + + + + +
         {
+ +202 + + + + + +
            Instance.StandardLogger.info("Log file created");
+ +203 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → SURVIVED
+ +
+
            Instance.MyValues.setAll();
+ +204 + + + + + +
         }
+ +205 + + + + + +
         else
+ +206 + + + + + +
         {
+ +207 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE
+ +
+
            Instance.MyValues.clearAll();
+ +208 + + + + + +
            Instance.StandardLogger.warning
+ +209 + + + + + +
               ("Cannot create log file, redirecting logs to the console");
+ +210 + + + + + +
         }
+ +211 + + + + + +
      }
+ +212 + + + + + +
   }
+ +213 + + + + + +
}

Mutations

30 + + + +

1.1
Location : getLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
44 + + + +

1.1
Location : getLogger
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → SURVIVED

+
45 + + + +

1.1
Location : getLogger
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
53 + + + +

1.1
Location : clearLogs
Killed by : none
negated conditional → NO_COVERAGE

+
61 + + + +

1.1
Location : clearLogs
Killed by : none
negated conditional → NO_COVERAGE

+
85 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
89 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
93 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
97 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
101 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
109 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
113 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
122 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
131 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
135 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
139 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
143 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
147 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
151 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
155 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
159 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
163 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
168 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
176 + + + +

1.1
Location : initLogs
Killed by : none
removed call to java/util/Locale::setDefault → SURVIVED

+
178 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
200 + + + +

1.1
Location : initLogs
Killed by : none
negated conditional → SURVIVED

+
203 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → SURVIVED

+
207 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (10 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (5 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (14 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html new file mode 100644 index 0000000..c41865e --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooLogs

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
167%
58/86
77%
23/30
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyLogger.java
67%
58/86
77%
23/30
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html new file mode 100644 index 0000000..32413d7 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html @@ -0,0 +1,3544 @@ + + + + + + + + +

MyStorage.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooStorage;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import java.io.PrintStream;
+ +5 + + + + + +
import java.io.BufferedReader;
+ +6 + + + + + +
import java.io.FileReader;
+ +7 + + + + + +
import java.io.IOException;
+ +8 + + + + + +
import java.io.File;
+ +9 + + + + + +
import java.util.*;
+ +10 + + + + + +
+ +11 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +12 + + + + + +
+ +13 + + + + + +
// **********************************************************************
+ +14 + + + + + +
public class MyStorage
+ +15 + + + + + +
{
+ +16 + + + + + +
   // **********************************************************************
+ +17 + + + + + +
   // public
+ +18 + + + + + +
   // **********************************************************************
+ +19 + + + + + +
   // ******** methods
+ +20 + + + + + +
+ +21 + + + + + +
   // **********************************************************************
+ +22 + + + + + +
   public static void deleteFile(String fileName)
+ +23 + + + + + +
   {
+ +24 + + + + + +
      String methodName = "deleteFile";
+ +25 + + + + + +
      MyLogger.getLogger().entering("MyStorage", methodName);
+ +26 + + + + + +
+ +27 + + + + + +
      File theFile = null;
+ +28 + + + + + +
+ +29 + + + + + +
      // delete file if it already exists
+ +30 + + + + + +
      theFile = new File(fileName);
+ +31 + + +1 + +1. deleteFile : negated conditional → KILLED
+ +
+
      if (theFile.exists())
+ +32 + + + + + +
      {
+ +33 + + + + + +
         theFile.delete();
+ +34 + + + + + +
      }
+ +35 + + + + + +
+ +36 + + + + + +
      MyLogger.getLogger().exiting("MyStorage", methodName);
+ +37 + + + + + +
   }
+ +38 + + + + + +
+ +39 + + + + + +
   // **********************************************************************
+ +40 + + + + + +
   public MyStorage()
+ +41 + + + + + +
   {
+ +42 + + + + + +
      String methodName = "MyStorage";
+ +43 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +44 + + + + + +
+ +45 + + + + + +
      FileName = "my_storage.txt";
+ +46 + + + + + +
      MyData = new ArrayList<String>();
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public MyStorage(String fileName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "MyStorage_String";
+ +55 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      this.FileName = fileName;
+ +58 + + + + + +
      MyData = new ArrayList<String>();
+ +59 + + + + + +
+ +60 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +61 + + + + + +
   }
+ +62 + + + + + +
+ +63 + + + + + +
   // **********************************************************************
+ +64 + + + + + +
   public void readData()
+ +65 + + + + + +
   {
+ +66 + + + + + +
      String methodName = "readData";
+ +67 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +68 + + + + + +
+ +69 + + + + + +
      BufferedReader myBuffer = null;
+ +70 + + + + + +
      FileReader myFile = null;
+ +71 + + + + + +
      String currentLine;
+ +72 + + + + + +
+ +73 + + + + + +
      try
+ +74 + + + + + +
      {
+ +75 + + + + + +
         myFile = new FileReader(FileName);
+ +76 + + + + + +
         myBuffer = new BufferedReader(myFile);
+ +77 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         while ((currentLine = myBuffer.readLine()) != null)
+ +78 + + + + + +
         {
+ +79 + + +1 + +1. readData : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
            addData(currentLine);
+ +80 + + + + + +
         }
+ +81 + + + + + +
      }
+ +82 + + + + + +
      catch(IOException e)
+ +83 + + + + + +
      {
+ +84 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot read " + FileName);
+ +85 + + + + + +
      }
+ +86 + + + + + +
+ +87 + + + + + +
      try
+ +88 + + + + + +
      {
+ +89 + + +1 + +1. readData : negated conditional → SURVIVED
+ +
+
         if (myBuffer != null)
+ +90 + + + + + +
         {
+ +91 + + +1 + +1. readData : removed call to java/io/BufferedReader::close → SURVIVED
+ +
+
            myBuffer.close();
+ +92 + + + + + +
         }
+ +93 + + +1 + +1. readData : negated conditional → SURVIVED
+ +
+
         if (myFile != null)
+ +94 + + + + + +
         {
+ +95 + + +1 + +1. readData : removed call to java/io/FileReader::close → SURVIVED
+ +
+
            myFile.close();
+ +96 + + + + + +
         }
+ +97 + + + + + +
      }
+ +98 + + + + + +
      catch(IOException e)
+ +99 + + + + + +
      {
+ +100 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: closing " + FileName);
+ +101 + + + + + +
      }
+ +102 + + + + + +
+ +103 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +104 + + + + + +
   }
+ +105 + + + + + +
+ +106 + + + + + +
   // **********************************************************************
+ +107 + + + + + +
   public void saveData()
+ +108 + + + + + +
   {
+ +109 + + + + + +
      String methodName = "saveData";
+ +110 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +111 + + + + + +
+ +112 + + + + + +
      try
+ +113 + + + + + +
      {
+ +114 + + + + + +
         PrintStream writer = new PrintStream(new File(FileName));
+ +115 + + +2 + +1. saveData : changed conditional boundary → KILLED
+2. saveData : negated conditional → KILLED
+ +
+
         for (int i = 0; i < getDataSize(); i++)
+ +116 + + + + + +
         {
+ +117 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → KILLED
+ +
+
            writer.println(getData(i));
+ +118 + + + + + +
         }
+ +119 + + +1 + +1. saveData : removed call to java/io/PrintStream::close → SURVIVED
+ +
+
         writer.close();
+ +120 + + + + + +
      }
+ +121 + + + + + +
      catch(IOException e)
+ +122 + + + + + +
      {
+ +123 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot write into " + FileName);
+ +124 + + + + + +
      }
+ +125 + + + + + +
+ +126 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +127 + + + + + +
   }
+ +128 + + + + + +
+ +129 + + + + + +
   // **********************************************************************
+ +130 + + + + + +
   public boolean isEqual(MyStorage anotherStorage)
+ +131 + + + + + +
   {
+ +132 + + + + + +
      String methodName = "isEqual";
+ +133 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +134 + + + + + +
+ +135 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == anotherStorage.getDataSize());
+ +136 + + + + + +
+ +137 + + +4 + +1. isEqual : negated conditional → SURVIVED
+2. isEqual : negated conditional → SURVIVED
+3. isEqual : changed conditional boundary → KILLED
+4. isEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +138 + + + + + +
      {
+ +139 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(anotherStorage.getData(i))))
+ +140 + + + + + +
         {
+ +141 + + + + + +
            areEqual = false;
+ +142 + + + + + +
         } 
+ +143 + + + + + +
      }
+ +144 + + + + + +
+ +145 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +146 + + +1 + +1. isEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +147 + + + + + +
   }
+ +148 + + + + + +
+ +149 + + + + + +
   // **********************************************************************
+ +150 + + + + + +
   public boolean dataAreEqual(ArrayList<String> otherData)
+ +151 + + + + + +
   {
+ +152 + + + + + +
      String methodName = "dataAreEqual";
+ +153 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +154 + + + + + +
+ +155 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == otherData.size());
+ +156 + + + + + +
+ +157 + + +4 + +1. dataAreEqual : negated conditional → SURVIVED
+2. dataAreEqual : negated conditional → SURVIVED
+3. dataAreEqual : changed conditional boundary → KILLED
+4. dataAreEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +158 + + + + + +
      {
+ +159 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(otherData.get(i))))
+ +160 + + + + + +
         {
+ +161 + + + + + +
            areEqual = false;
+ +162 + + + + + +
         } 
+ +163 + + + + + +
      }
+ +164 + + + + + +
+ +165 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +166 + + +1 + +1. dataAreEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +167 + + + + + +
   }
+ +168 + + + + + +
+ +169 + + + + + +
   // **********************************************************************
+ +170 + + + + + +
   // ******** attributes
+ +171 + + + + + +
+ +172 + + + + + +
   // **********************************************************************
+ +173 + + + + + +
   public String getFileName()
+ +174 + + + + + +
   {
+ +175 + + +1 + +1. getFileName : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(FileName);
+ +176 + + + + + +
   }
+ +177 + + + + + +
+ +178 + + + + + +
   // **********************************************************************
+ +179 + + + + + +
   public int getDataSize()
+ +180 + + + + + +
   {
+ +181 + + +1 + +1. getDataSize : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyData.size());
+ +182 + + + + + +
   }
+ +183 + + + + + +
+ +184 + + + + + +
   // **********************************************************************
+ +185 + + + + + +
   public String getData(int index)
+ +186 + + + + + +
   {
+ +187 + + +1 + +1. getData : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyData.get(index));
+ +188 + + + + + +
   }
+ +189 + + + + + +
+ +190 + + + + + +
   // **********************************************************************
+ +191 + + + + + +
   public void addData(String aData)
+ +192 + + + + + +
   {
+ +193 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize())
+ +194 + + + + + +
         + " - aData = " + aData);
+ +195 + + + + + +
+ +196 + + + + + +
      MyData.add(aData);
+ +197 + + + + + +
+ +198 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize()));
+ +199 + + + + + +
   }
+ +200 + + + + + +
+ +201 + + + + + +
   // **********************************************************************
+ +202 + + + + + +
   public void delData(String aData)
+ +203 + + + + + +
   {
+ +204 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize()));
+ +205 + + + + + +
+ +206 + + + + + +
      boolean found = false;
+ +207 + + + + + +
+ +208 + + +4 + +1. delData : changed conditional boundary → NO_COVERAGE
+2. delData : Changed increment from 1 to -1 → NO_COVERAGE
+3. delData : negated conditional → NO_COVERAGE
+4. delData : negated conditional → NO_COVERAGE
+ +
+
      for (int i = 0; i < getDataSize() && ! found; i++)
+ +209 + + + + + +
      {
+ +210 + + +1 + +1. delData : negated conditional → NO_COVERAGE
+ +
+
         if (getData(i).equals(aData))
+ +211 + + + + + +
         {
+ +212 + + + + + +
            MyData.remove(i);
+ +213 + + + + + +
            found = true;
+ +214 + + + + + +
         } 
+ +215 + + + + + +
      } 
+ +216 + + + + + +
+ +217 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize())
+ +218 + + + + + +
         + " - found = " + Boolean.toString(found));
+ +219 + + + + + +
   }
+ +220 + + + + + +
+ +221 + + + + + +
   // **********************************************************************
+ +222 + + + + + +
   // private
+ +223 + + + + + +
   // **********************************************************************
+ +224 + + + + + +
   // ******** attributes
+ +225 + + + + + +
   private String FileName;
+ +226 + + + + + +
   private ArrayList<String> MyData;
+ +227 + + + + + +
}

Mutations

31 + + + +

1.1
Location : deleteFile
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
77 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
79 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
84 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
89 + + + +

1.1
Location : readData
Killed by : none
negated conditional → SURVIVED

+
91 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/BufferedReader::close → SURVIVED

+
93 + + + +

1.1
Location : readData
Killed by : none
negated conditional → SURVIVED

+
95 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/FileReader::close → SURVIVED

+
100 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
115 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to java/io/PrintStream::println → KILLED

+
119 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::close → SURVIVED

+
123 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
135 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
137 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : isEqual
Killed by : none
negated conditional → SURVIVED

+
139 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
146 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
155 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
157 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

+
159 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
166 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
175 + + + +

1.1
Location : getFileName
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
181 + + + +

1.1
Location : getDataSize
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
187 + + + +

1.1
Location : getData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
208 + + + +

1.1
Location : delData
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : delData
Killed by : none
Changed increment from 1 to -1 → NO_COVERAGE

3.3
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
210 + + + +

1.1
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (10 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (5 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (14 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/index.html b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/index.html new file mode 100644 index 0000000..9d796c2 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooStorage

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
180%
68/85
53%
19/36
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyStorage.java
80%
68/85
53%
19/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/index.html b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/index.html new file mode 100644 index 0000000..a809494 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/index.html @@ -0,0 +1,73 @@ + + + + + + + +

Pit Test Coverage Report

+ +

Project Summary

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
380%
197/247
65%
58/89
+ + +

Breakdown by Package

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameNumber of ClassesLine CoverageMutation Coverage
eu.stamp_project.examples.dnoo.dnooHello1
93%
71/76
70%
16/23
eu.stamp_project.examples.dnoo.dnooLogs1
67%
58/86
77%
23/30
eu.stamp_project.examples.dnoo.dnooStorage1
80%
68/85
53%
19/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/style.css b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/style.css new file mode 100644 index 0000000..cd65bd3 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/pit-reports/201804231936/style.css @@ -0,0 +1,563 @@ +html, body, div, span, p, blockquote, pre { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body{ + line-height: 1; + color: black; + background: white; + margin-left: 20px; +} + +.src { + border: 1px solid #dddddd; + padding-top: 10px; + padding-right: 5px; + padding-left: 5px; + font-family: Consolas, Courier, monospace; +} + +.covered { + background-color: #ddffdd; +} + +.uncovered { + background-color: #ffdddd; +} + +.killed, .KILLED { + background-color: #aaffaa; +} + +.survived, .SURVIVED { + background-color: #ffaaaa; +} + +.uncertain { + background-color: #dde7ef; +} + +.run_error { + background-color: #dde7ef; +} + +.na { + background-color: #eeeeee; +} + +.timed_out { + background-color: #dde7ef; +} + +.non_viable { + background-color: #aaffaa; +} + +.memory_error { + background-color: #dde7ef; +} + +.not_started { + background-color: #dde7ef; color : red +} + +.no_coverage { + background-color: #ffaaaa; +} + +.tests { + width: 50%; + float: left; +} + +.mutees { + float: right; + width: 50%; +} + +.unit { + padding-top: 20px; + clear: both; +} + +.coverage_bar { + display: inline-block; + height: 1.1em; + width: 130px; + background: #FAA; + margin: 0 5px; + vertical-align: middle; + border: 1px solid #AAA; + position: relative; +} + +.coverage_complete { + display: inline-block; + height: 100%; + background: #DFD; + float: left; +} + +.coverage_legend { + position: absolute; + height: 100%; + width: 100%; + left: 0; + top: 0; + text-align: center; +} + +.line, .mut { + vertical-align: middle; +} + +.coverage_percentage { + display: inline-block; + width: 3em; + text-align: right; +} + +.pop { + outline:none; +} + +.pop strong { + line-height: 30px; +} + +.pop { + text-decoration: none; +} + +.pop span { + z-index: 10; + display: none; + padding: 14px 20px; + margin-top: -30px; + margin-left: 28px; + width: 800px; + line-height: 16px; + word-wrap: break-word; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -moz-box-shadow: 5px 5px 8px #CCC; + -webkit-box-shadow: 5px 5px 8px #CCC; + box-shadow: 5px 5px 8px #CCC; +} + +.pop:hover span { + display: inline; + position: absolute; + color: #111; + border: 1px solid #DCA; + background: #fffAF0; +} + +.width-1 { + width: 1%; +} + +.width-2 { + width: 2%; +} + +.width-3 { + width: 3%; +} + +.width-4 { + width: 4%; +} + +.width-5 { + width: 5%; +} + +.width-6 { + width: 6%; +} + +.width-7 { + width: 7%; +} + +.width-8 { + width: 8%; +} + +.width-9 { + width: 9%; +} + +.width-10 { + width: 10%; +} + +.width-11 { + width: 11%; +} + +.width-12 { + width: 12%; +} + +.width-13 { + width: 13%; +} + +.width-14 { + width: 14%; +} + +.width-15 { + width: 15%; +} + +.width-16 { + width: 16%; +} + +.width-17 { + width: 17%; +} + +.width-18 { + width: 18%; +} + +.width-19 { + width: 19%; +} + +.width-20 { + width: 20%; +} + +.width-21 { + width: 21%; +} + +.width-22 { + width: 22%; +} + +.width-23 { + width: 23%; +} + +.width-24 { + width: 24%; +} + +.width-25 { + width: 25%; +} + +.width-26 { + width: 26%; +} + +.width-27 { + width: 27%; +} + +.width-28 { + width: 28%; +} + +.width-29 { + width: 29%; +} + +.width-30 { + width: 30%; +} + +.width-31 { + width: 31%; +} + +.width-32 { + width: 32%; +} + +.width-33 { + width: 33%; +} + +.width-34 { + width: 34%; +} + +.width-35 { + width: 35%; +} + +.width-36 { + width: 36%; +} + +.width-37 { + width: 37%; +} + +.width-38 { + width: 38%; +} + +.width-39 { + width: 39%; +} + +.width-40 { + width: 40%; +} + +.width-41 { + width: 41%; +} + +.width-42 { + width: 42%; +} + +.width-43 { + width: 43%; +} + +.width-44 { + width: 44%; +} + +.width-45 { + width: 45%; +} + +.width-46 { + width: 46%; +} + +.width-47 { + width: 47%; +} + +.width-48 { + width: 48%; +} + +.width-49 { + width: 49%; +} + +.width-50 { + width: 50%; +} + +.width-51 { + width: 51%; +} + +.width-52 { + width: 52%; +} + +.width-53 { + width: 53%; +} + +.width-54 { + width: 54%; +} + +.width-55 { + width: 55%; +} + +.width-56 { + width: 56%; +} + +.width-57 { + width: 57%; +} + +.width-58 { + width: 58%; +} + +.width-59 { + width: 59%; +} + +.width-60 { + width: 60%; +} + +.width-61 { + width: 61%; +} + +.width-62 { + width: 62%; +} + +.width-63 { + width: 63%; +} + +.width-64 { + width: 64%; +} + +.width-65 { + width: 65%; +} + +.width-66 { + width: 66%; +} + +.width-67 { + width: 67%; +} + +.width-68 { + width: 68%; +} + +.width-69 { + width: 69%; +} + +.width-70 { + width: 70%; +} + +.width-71 { + width: 71%; +} + +.width-72 { + width: 72%; +} + +.width-73 { + width: 73%; +} + +.width-74 { + width: 74%; +} + +.width-75 { + width: 75%; +} + +.width-76 { + width: 76%; +} + +.width-77 { + width: 77%; +} + +.width-78 { + width: 78%; +} + +.width-79 { + width: 79%; +} + +.width-80 { + width: 80%; +} + +.width-81 { + width: 81%; +} + +.width-82 { + width: 82%; +} + +.width-83 { + width: 83%; +} + +.width-84 { + width: 84%; +} + +.width-85 { + width: 85%; +} + +.width-86 { + width: 86%; +} + +.width-87 { + width: 87%; +} + +.width-88 { + width: 88%; +} + +.width-89 { + width: 89%; +} + +.width-90 { + width: 90%; +} + +.width-91 { + width: 91%; +} + +.width-92 { + width: 92%; +} + +.width-93 { + width: 93%; +} + +.width-94 { + width: 94%; +} + +.width-95 { + width: 95%; +} + +.width-96 { + width: 96%; +} + +.width-97 { + width: 97%; +} + +.width-98 { + width: 98%; +} + +.width-99 { + width: 99%; +} + +.width-100 { + width: 100%; +} \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.xml b/test_dir/dnoo/dnooHello/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.xml new file mode 100644 index 0000000..87c19ce --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooHello.MixedTest.xml b/test_dir/dnoo/dnooHello/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooHello.MixedTest.xml new file mode 100644 index 0000000..9faef74 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooHello.MixedTest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooHello/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.txt b/test_dir/dnoo/dnooHello/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.txt new file mode 100644 index 0000000..2598a36 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest +------------------------------------------------------------------------------- +Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.144 sec - in eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest diff --git a/test_dir/dnoo/dnooHello/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooHello.MixedTest.txt b/test_dir/dnoo/dnooHello/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooHello.MixedTest.txt new file mode 100644 index 0000000..a8b5615 --- /dev/null +++ b/test_dir/dnoo/dnooHello/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooHello.MixedTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooHello.MixedTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.051 sec - in eu.stamp_project.examples.dnoo.dnooHello.MixedTest diff --git a/test_dir/dnoo/dnooHello/target/test-classes/eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.class b/test_dir/dnoo/dnooHello/target/test-classes/eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.class new file mode 100644 index 0000000..2eaaa27 Binary files /dev/null and b/test_dir/dnoo/dnooHello/target/test-classes/eu/stamp_project/examples/dnoo/dnooHello/HelloAppTest.class differ diff --git a/test_dir/dnoo/dnooHello/target/test-classes/eu/stamp_project/examples/dnoo/dnooHello/MixedTest.class b/test_dir/dnoo/dnooHello/target/test-classes/eu/stamp_project/examples/dnoo/dnooHello/MixedTest.class new file mode 100644 index 0000000..f5a6418 Binary files /dev/null and b/test_dir/dnoo/dnooHello/target/test-classes/eu/stamp_project/examples/dnoo/dnooHello/MixedTest.class differ diff --git a/test_dir/dnoo/dnooIntegration/bar.txt b/test_dir/dnoo/dnooIntegration/bar.txt new file mode 100644 index 0000000..3a1e9dd --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/bar.txt @@ -0,0 +1,3 @@ +1st line +a second line, longer than the first one +3rd line with something else: 2, 4, 8, 16 diff --git a/test_dir/dnoo/dnooIntegration/dnoo.log.1 b/test_dir/dnoo/dnooIntegration/dnoo.log.1 new file mode 100644 index 0000000..93d0b3a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/dnoo.log.1 @@ -0,0 +1,12 @@ +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest testSessionBis2 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest testSessionBis2 +WARNING: checking log level: warning +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/dnoo.log.2 b/test_dir/dnoo/dnooIntegration/dnoo.log.2 new file mode 100644 index 0000000..93d0b3a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/dnoo.log.2 @@ -0,0 +1,12 @@ +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest testSessionBis2 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest testSessionBis2 +WARNING: checking log level: warning +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/global51.traces b/test_dir/dnoo/dnooIntegration/global51.traces new file mode 100644 index 0000000..0624198 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/global51.traces @@ -0,0 +1,4 @@ +5 +----- +----- Hello World ! +----- diff --git a/test_dir/dnoo/dnooIntegration/global52.traces b/test_dir/dnoo/dnooIntegration/global52.traces new file mode 100644 index 0000000..bef630b --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/global52.traces @@ -0,0 +1,4 @@ +1 +- +- Hello World ! +- diff --git a/test_dir/dnoo/dnooIntegration/global_mixed51.traces b/test_dir/dnoo/dnooIntegration/global_mixed51.traces new file mode 100644 index 0000000..f6dca47 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/global_mixed51.traces @@ -0,0 +1,4 @@ +20 +-------------------- +-------------------- Hello World ! +-------------------- diff --git a/test_dir/dnoo/dnooIntegration/global_mixed52.txt b/test_dir/dnoo/dnooIntegration/global_mixed52.txt new file mode 100644 index 0000000..4e07ccf --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/global_mixed52.txt @@ -0,0 +1,4 @@ +a first line, longer than the first one +2nd line with something else: 2, 4, 8, 16 +3rd line +the end diff --git a/test_dir/dnoo/dnooIntegration/hello_run3.traces b/test_dir/dnoo/dnooIntegration/hello_run3.traces new file mode 100644 index 0000000..48d2d39 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/hello_run3.traces @@ -0,0 +1,4 @@ +22 +---------------------- +---------------------- Hello World ! +---------------------- diff --git a/test_dir/dnoo/dnooIntegration/mixed1.traces b/test_dir/dnoo/dnooIntegration/mixed1.traces new file mode 100644 index 0000000..a4dacd1 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/mixed1.traces @@ -0,0 +1,4 @@ +40 +---------------------------------------- +---------------------------------------- Hello World ! +---------------------------------------- diff --git a/test_dir/dnoo/dnooIntegration/mixed2.txt b/test_dir/dnoo/dnooIntegration/mixed2.txt new file mode 100644 index 0000000..4e07ccf --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/mixed2.txt @@ -0,0 +1,4 @@ +a first line, longer than the first one +2nd line with something else: 2, 4, 8, 16 +3rd line +the end diff --git a/test_dir/dnoo/dnooIntegration/myHelloApp.traces b/test_dir/dnoo/dnooIntegration/myHelloApp.traces new file mode 100644 index 0000000..bef630b --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/myHelloApp.traces @@ -0,0 +1,4 @@ +1 +- +- Hello World ! +- diff --git a/test_dir/dnoo/dnooIntegration/my_storage.txt b/test_dir/dnoo/dnooIntegration/my_storage.txt new file mode 100644 index 0000000..5761b1e --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/my_storage.txt @@ -0,0 +1,4 @@ +8 +-------- +-------- Hello World ! +-------- diff --git a/test_dir/dnoo/dnooIntegration/pom.xml b/test_dir/dnoo/dnooIntegration/pom.xml new file mode 100644 index 0000000..2a2af98 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/pom.xml @@ -0,0 +1,40 @@ + + + 4.0.0 + + + eu.stamp-project + dnoo + 1.0.1 + + + dnooIntegration + + + + junit + junit + test + + + + ${project.parent.groupId} + dnooHello + ${project.parent.version} + + + + ${project.parent.groupId} + dnooStorage + ${project.parent.version} + + + + ${project.parent.groupId} + dnooLogs + ${project.parent.version} + + + diff --git a/test_dir/dnoo/dnooIntegration/session51.log.1 b/test_dir/dnoo/dnooIntegration/session51.log.1 new file mode 100644 index 0000000..75c576a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.1 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.10 b/test_dir/dnoo/dnooIntegration/session51.log.10 new file mode 100644 index 0000000..f53824e --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.10 @@ -0,0 +1,6 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE diff --git a/test_dir/dnoo/dnooIntegration/session51.log.11 b/test_dir/dnoo/dnooIntegration/session51.log.11 new file mode 100644 index 0000000..d93ead1 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.11 @@ -0,0 +1,18 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 5 - MyTracesName = global51.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-----' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = global52.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +INFO: testing default logs level +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE diff --git a/test_dir/dnoo/dnooIntegration/session51.log.12 b/test_dir/dnoo/dnooIntegration/session51.log.12 new file mode 100644 index 0000000..e69de29 diff --git a/test_dir/dnoo/dnooIntegration/session51.log.13 b/test_dir/dnoo/dnooIntegration/session51.log.13 new file mode 100644 index 0000000..d93ead1 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.13 @@ -0,0 +1,18 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 5 - MyTracesName = global51.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-----' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = global52.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +INFO: testing default logs level +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE diff --git a/test_dir/dnoo/dnooIntegration/session51.log.14 b/test_dir/dnoo/dnooIntegration/session51.log.14 new file mode 100644 index 0000000..e10df13 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.14 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:05 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:05 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.15 b/test_dir/dnoo/dnooIntegration/session51.log.15 new file mode 100644 index 0000000..e10df13 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.15 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:05 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:05 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.16 b/test_dir/dnoo/dnooIntegration/session51.log.16 new file mode 100644 index 0000000..e10df13 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.16 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:05 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:05 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.2 b/test_dir/dnoo/dnooIntegration/session51.log.2 new file mode 100644 index 0000000..36fe49a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.2 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:10 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:10 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.3 b/test_dir/dnoo/dnooIntegration/session51.log.3 new file mode 100644 index 0000000..36fe49a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.3 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:10 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:10 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.4 b/test_dir/dnoo/dnooIntegration/session51.log.4 new file mode 100644 index 0000000..36fe49a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.4 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:10 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:10 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.5 b/test_dir/dnoo/dnooIntegration/session51.log.5 new file mode 100644 index 0000000..ffe2d3e --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.5 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.6 b/test_dir/dnoo/dnooIntegration/session51.log.6 new file mode 100644 index 0000000..ffe2d3e --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.6 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.7 b/test_dir/dnoo/dnooIntegration/session51.log.7 new file mode 100644 index 0000000..6ec0f65 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.7 @@ -0,0 +1,484 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo2.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = foo1.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage +FINER: RETURN +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 8 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '--------' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = -------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = -------- Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = -------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 8 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = -------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = -------- Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = -------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = a first line, longer than the first one +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = 2nd line with something else: 2, 4, 8, 16 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = 3rd line +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = the end +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = a first line, longer than the first one +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = 2nd line with something else: 2, 4, 8, 16 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = 3rd line +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = the end +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = a first line, longer than the first one +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = 2nd line with something else: 2, 4, 8, 16 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = 3rd line +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = the end +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = a first line, longer than the first one +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = 2nd line with something else: 2, 4, 8, 16 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = 3rd line +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = the end +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage dataAreEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = - +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = - Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = - +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = - +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = - Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = - +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 22 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '----------------------' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ---------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ---------------------- Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ---------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 22 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ---------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ---------------------- Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ---------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:06 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 40 - MyTracesName = mixed1.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 40 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '----------------------------------------' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ---------------------------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ---------------------------------------- Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ---------------------------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 40 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ---------------------------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ---------------------------------------- Hello World ! +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ---------------------------------------- +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 5 - MyTracesName = global51.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-----' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = global52.traces +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-' +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +INFO: testing default logs level +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE diff --git a/test_dir/dnoo/dnooIntegration/session51.log.8 b/test_dir/dnoo/dnooIntegration/session51.log.8 new file mode 100644 index 0000000..830366b --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.8 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.log.9 b/test_dir/dnoo/dnooIntegration/session51.log.9 new file mode 100644 index 0000000..830366b --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.log.9 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:06 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session51.traces b/test_dir/dnoo/dnooIntegration/session51.traces new file mode 100644 index 0000000..2a1cd82 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session51.traces @@ -0,0 +1,4 @@ +9 +--------- +--------- Hello World ! +--------- diff --git a/test_dir/dnoo/dnooIntegration/session52.log.1 b/test_dir/dnoo/dnooIntegration/session52.log.1 new file mode 100644 index 0000000..75c576a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session52.log.1 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session52.log.2 b/test_dir/dnoo/dnooIntegration/session52.log.2 new file mode 100644 index 0000000..75c576a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session52.log.2 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:14 PM eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest testSessionBis1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooIntegration/session52.traces b/test_dir/dnoo/dnooIntegration/session52.traces new file mode 100644 index 0000000..7fa72a5 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/session52.traces @@ -0,0 +1,3 @@ +7 +------- +------- Hello World ! diff --git a/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.java b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.java new file mode 100644 index 0000000..f35b70e --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.java @@ -0,0 +1,62 @@ +package eu.stamp_project.examples.dnoo.dnooIntegration; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +public class GlobalAppBisTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testGlobalAppBisRun1() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 5; + String countString = Integer.toString(myCount); + String helloString = "----- Hello World !"; + String myTracesName = "global51.traces"; + + MyLogger.clearLogs(); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } + + // ********************************************************************** + @Test + public void testGlobalAppBisRun2() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 1; + String countString = Integer.toString(myCount); + String helloString = "- Hello World !"; + String myTracesName = "global52.traces"; + + MyLogger.clearLogs(); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } +} diff --git a/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.java b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.java new file mode 100644 index 0000000..ba9d0f4 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.java @@ -0,0 +1,82 @@ +package eu.stamp_project.examples.dnoo.dnooIntegration; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; + +public class GlobalMixedBisTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testGlobalMixedBis1HelloAppRun() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 20; + String countString = Integer.toString(myCount); + String helloString = "-------------------- Hello World !"; + String MyTracesName = "global_mixed51.traces"; + // String message; + + myApp = new HelloApp(myCount, MyTracesName); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } + + @Test + public void testGlobalMixedBis2SaveReadData() throws Exception + { + MyStorage myFile = null; + MyStorage mySecondFile = null; + String myFileName = "global_mixed52.txt"; + File theFile = null; + ArrayList myData = new ArrayList(); + + MyStorage.deleteFile(myFileName); + + // files content + myData.add("a first line, longer than the first one"); + myData.add("2nd line with something else: 2, 4, 8, 16"); + myData.add("3rd line"); + myData.add("the end"); + + // write data in the first file + myFile = new MyStorage(myFileName); + for (int i = 0; i < myData.size(); i++) + { + myFile.addData(myData.get(i)); + } + assertEquals(myData.size(), myFile.getDataSize()); + assertEquals(true, myFile.dataAreEqual(myData)); + + myFile.saveData(); + theFile = new File(myFileName); + assertEquals(true, theFile.exists()); + + // read data in the 2nd file + mySecondFile = new MyStorage(myFileName); + assertEquals(true, theFile.exists()); + + mySecondFile.readData(); + assertEquals(myData.size(), mySecondFile.getDataSize()); + assertEquals(true, mySecondFile.dataAreEqual(myData)); + + // compare content + assertEquals(true, myFile.isEqual(mySecondFile)); + } +} diff --git a/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.java b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.java new file mode 100644 index 0000000..e63f7b9 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.java @@ -0,0 +1,57 @@ +package eu.stamp_project.examples.dnoo.dnooIntegration; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +public class Session1BisTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testSessionBis1() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 9; + String countString = Integer.toString(myCount); + String helloString = "--------- Hello World !"; + String myTracesName = "session51.traces"; + MyStorage logsContent = null; + + MyLogger.clearLogs(); + MyLogger.LogFileName = "session51.log"; + MyLogger.getLogger().info("testing default logs level"); + assertEquals("WARNING", MyLogger.getLevel()); + MyLogger.getLogger().severe("checking log level: severe"); + MyLogger.getLogger().warning("checking log level: warning"); + MyLogger.getLogger().info("checking log level: info"); + MyLogger.getLogger().config("checking log level: config"); + MyLogger.getLogger().fine("checking log level: fine"); + MyLogger.getLogger().finer("checking log level: finer"); + MyLogger.getLogger().finest("checking log level: finest"); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + + // MyLogger.setLevel("OFF"); + // check logs file content + logsContent = new MyStorage(MyLogger.LogFileName); + logsContent.readData(); + assertEquals(4, logsContent.getDataSize()); + assertEquals("SEVERE: checking log level: severe", logsContent.getData(1)); + assertEquals("WARNING: checking log level: warning", logsContent.getData(3)); + } +} diff --git a/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.java b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.java new file mode 100644 index 0000000..fc1de89 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.java @@ -0,0 +1,66 @@ +package eu.stamp_project.examples.dnoo.dnooIntegration; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +public class Session2BisTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testSessionBis2() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 7; + String countString = Integer.toString(myCount); + String helloString = "------- Hello World !"; + String myTracesName = "session52.traces"; + MyStorage logsContent = null; + + MyLogger.clearLogs(); + MyLogger.LogFileName = "session52.log"; + MyLogger.setLevel("FINE"); + MyLogger.getLogger().info("testing logs level FINE"); + assertEquals(MyLogger.getLevel(), "FINE"); + + MyLogger.getLogger().severe("checking log level: severe"); + MyLogger.getLogger().warning("checking log level: warning"); + MyLogger.getLogger().info("checking log level: info"); + MyLogger.getLogger().config("checking log level: config"); + MyLogger.getLogger().fine("checking log level: fine"); + MyLogger.getLogger().finer("checking log level: finer"); + MyLogger.getLogger().finest("checking log level: finest"); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + + MyLogger.setLevel("OFF"); + // check logs file content + logsContent = new MyStorage(MyLogger.LogFileName); + logsContent.readData(); + assertEquals(16, logsContent.getDataSize()); + assertEquals("INFO: testing logs level FINE", logsContent.getData(1)); + assertEquals("SEVERE: checking log level: severe", logsContent.getData(3)); + assertEquals("WARNING: checking log level: warning", logsContent.getData(5)); + assertEquals("INFO: checking log level: info", logsContent.getData(7)); + assertEquals("CONFIG: checking log level: config", logsContent.getData(9)); + assertEquals("FINE: checking log level: fine", logsContent.getData(11)); + assertEquals("INFO: MyPrintCount = 7 - MyTracesName = session52.traces", + logsContent.getData(13)); + assertEquals("FINE: indent = '-------'", logsContent.getData(15)); + } +} diff --git a/test_dir/dnoo/dnooIntegration/target/dnooIntegration-1.0.1.jar b/test_dir/dnoo/dnooIntegration/target/dnooIntegration-1.0.1.jar new file mode 100644 index 0000000..51a0d7e Binary files /dev/null and b/test_dir/dnoo/dnooIntegration/target/dnooIntegration-1.0.1.jar differ diff --git a/test_dir/dnoo/dnooIntegration/target/maven-archiver/pom.properties b/test_dir/dnoo/dnooIntegration/target/maven-archiver/pom.properties new file mode 100644 index 0000000..767af01 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Apr 23 19:36:49 CEST 2018 +version=1.0.1 +groupId=eu.stamp-project +artifactId=dnooIntegration diff --git a/test_dir/dnoo/dnooIntegration/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/test_dir/dnoo/dnooIntegration/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..2b728c3 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,4 @@ +eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.class +eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.class +eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.class +eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.class diff --git a/test_dir/dnoo/dnooIntegration/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/test_dir/dnoo/dnooIntegration/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..fbf9f6a --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,4 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooIntegration/src/test/java/eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.java diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html new file mode 100644 index 0000000..fb64cc1 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html @@ -0,0 +1,3143 @@ + + + + + + + + +

HelloApp.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooHello;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage;
+ +5 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +6 + + + + + +
+ +7 + + + + + +
// **********************************************************************
+ +8 + + + + + +
public class HelloApp
+ +9 + + + + + +
{
+ +10 + + + + + +
   // **********************************************************************
+ +11 + + + + + +
   // public
+ +12 + + + + + +
   // **********************************************************************
+ +13 + + + + + +
   // ******** methods
+ +14 + + + + + +
+ +15 + + + + + +
   // **********************************************************************
+ +16 + + + + + +
   public HelloApp()
+ +17 + + + + + +
   {
+ +18 + + + + + +
      String methodName = "HelloApp";
+ +19 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +20 + + + + + +
+ +21 + + + + + +
      MyPrintCount = 1;
+ +22 + + + + + +
      MyTraces = null;
+ +23 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +24 + + + + + +
      ShouldPrintOnStdout = true;
+ +25 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +26 + + + + + +
+ +27 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +28 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +29 + + + + + +
+ +30 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // **********************************************************************
+ +34 + + + + + +
   public HelloApp(int printCount)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      String methodName = "HelloApp_int";
+ +37 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +38 + + + + + +
+ +39 + + + + + +
      MyPrintCount = printCount;
+ +40 + + + + + +
      MyTraces = null;
+ +41 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +42 + + + + + +
      ShouldPrintOnStdout = true;
+ +43 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +44 + + + + + +
+ +45 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +46 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public HelloApp(String tracesName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "HelloApp_String";
+ +55 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      MyPrintCount = 1;
+ +58 + + + + + +
      MyTraces = null;
+ +59 + + + + + +
      MyTracesName = tracesName;
+ +60 + + + + + +
      ShouldPrintOnStdout = true;
+ +61 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +62 + + + + + +
+ +63 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +64 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +65 + + + + + +
+ +66 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   public HelloApp(int printCount, String tracesName)
+ +71 + + + + + +
   {
+ +72 + + + + + +
      String methodName = "HelloApp_int_String";
+ +73 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +74 + + + + + +
+ +75 + + + + + +
      MyPrintCount = printCount;
+ +76 + + + + + +
      MyTraces = null;
+ +77 + + + + + +
      MyTracesName = tracesName;
+ +78 + + + + + +
      ShouldPrintOnStdout = true;
+ +79 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +80 + + + + + +
+ +81 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +82 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +83 + + + + + +
+ +84 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +85 + + + + + +
   }
+ +86 + + + + + +
+ +87 + + + + + +
   // **********************************************************************
+ +88 + + + + + +
   public void run()
+ +89 + + + + + +
   {
+ +90 + + + + + +
      String methodName = "run";
+ +91 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +92 + + + + + +
+ +93 + + + + + +
      String indent = "-";
+ +94 + + + + + +
      String countString = Integer.toString(MyPrintCount);
+ +95 + + + + + +
+ +96 + + +2 + +1. run : changed conditional boundary → KILLED
+2. run : negated conditional → KILLED
+ +
+
      if (MyTracesName.length() > 0)
+ +97 + + + + + +
      {
+ +98 + + + + + +
         MyTraces = new MyStorage(MyTracesName);
+ +99 + + + + + +
      }
+ +100 + + + + + +
      else
+ +101 + + + + + +
      {
+ +102 + + + + + +
         MyTraces = new MyStorage();
+ +103 + + + + + +
      }
+ +104 + + + + + +
+ +105 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(countString);
+ +106 + + + + + +
+ +107 + + +3 + +1. run : Changed increment from 1 to -1 → TIMED_OUT
+2. run : negated conditional → TIMED_OUT
+3. run : changed conditional boundary → KILLED
+ +
+
      for (int i = 1; i < MyPrintCount; i++)
+ +108 + + + + + +
      {
+ +109 + + + + + +
         indent = indent + "-";
+ +110 + + + + + +
      }
+ +111 + + + + + +
      MyLogger.getLogger().fine("indent = '" + indent + "'");
+ +112 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent);
+ +113 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent + " Hello World !");
+ +114 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → SURVIVED
+ +
+
      myPrint(indent);
+ +115 + + + + + +
+ +116 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::saveData → KILLED
+ +
+
      MyTraces.saveData();
+ +117 + + + + + +
+ +118 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +119 + + + + + +
   }
+ +120 + + + + + +
+ +121 + + + + + +
   // **********************************************************************
+ +122 + + + + + +
   public void computeMyUselessResult()
+ +123 + + + + + +
   {
+ +124 + + + + + +
      // PI = 3,141 592 653 589 793 - PI (10 chiffres exactes) ~ 104348 / 33215
+ +125 + + + + + +
      // PI = 3,1415926535 8979323846 2643383279 5028841971 6939937510 5820974944
+ +126 + + + + + +
      //      5923078164 0628620899 8628034825 3421170679
+ +127 + + + + + +
      // PHI = (1 + rootsquare(5)) / 2 = 1,618 033 988 7
+ +128 + + + + + +
      // PHI = 1,618 033 988 749 894 848 204 586 834 365 638 117 720 309 179 805
+ +129 + + + + + +
      //      762 862 135 448 622 705 260 462 189 024 497 072 072 041
+ +130 + + + + + +
   }
+ +131 + + + + + +
+ +132 + + + + + +
   // **********************************************************************
+ +133 + + + + + +
   // ******** attributes
+ +134 + + + + + +
+ +135 + + + + + +
   // **********************************************************************
+ +136 + + + + + +
   public int getMyPrintCount()
+ +137 + + + + + +
   {
+ +138 + + +1 + +1. getMyPrintCount : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyPrintCount);
+ +139 + + + + + +
   }
+ +140 + + + + + +
+ +141 + + + + + +
   // **********************************************************************
+ +142 + + + + + +
   public String getMyTracesName()
+ +143 + + + + + +
   {
+ +144 + + +1 + +1. getMyTracesName : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTracesName);
+ +145 + + + + + +
   }
+ +146 + + + + + +
+ +147 + + + + + +
   // **********************************************************************
+ +148 + + + + + +
   public boolean getShouldPrintOnStdout()
+ +149 + + + + + +
   {
+ +150 + + +1 + +1. getShouldPrintOnStdout : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(ShouldPrintOnStdout);
+ +151 + + + + + +
   }
+ +152 + + + + + +
+ +153 + + + + + +
   // **********
+ +154 + + + + + +
   public void setShouldPrintOnStdout(boolean value)
+ +155 + + + + + +
   {
+ +156 + + + + + +
      ShouldPrintOnStdout = value;
+ +157 + + + + + +
   }
+ +158 + + + + + +
+ +159 + + + + + +
   // **********************************************************************
+ +160 + + + + + +
   // ******** associations
+ +161 + + + + + +
+ +162 + + + + + +
   // **********************************************************************
+ +163 + + + + + +
   public int cardMyTraces()
+ +164 + + + + + +
   {
+ +165 + + + + + +
      int theCard = 0;
+ +166 + + + + + +
+ +167 + + +1 + +1. cardMyTraces : negated conditional → KILLED
+ +
+
      if (MyTraces != null)
+ +168 + + + + + +
      {
+ +169 + + + + + +
         theCard = 1;
+ +170 + + + + + +
      }
+ +171 + + + + + +
+ +172 + + +1 + +1. cardMyTraces : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(theCard);
+ +173 + + + + + +
   }
+ +174 + + + + + +
+ +175 + + + + + +
   // **********
+ +176 + + + + + +
   public MyStorage getMyTraces()
+ +177 + + + + + +
   {
+ +178 + + +1 + +1. getMyTraces : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTraces);
+ +179 + + + + + +
   }
+ +180 + + + + + +
+ +181 + + + + + +
   // **********************************************************************
+ +182 + + + + + +
   // protected
+ +183 + + + + + +
   // **********************************************************************
+ +184 + + + + + +
   // ******** methods
+ +185 + + + + + +
+ +186 + + + + + +
   // **********************************************************************
+ +187 + + + + + +
   protected void myPrint(String message)
+ +188 + + + + + +
   {
+ +189 + + +1 + +1. myPrint : negated conditional → SURVIVED
+ +
+
      if (getShouldPrintOnStdout())
+ +190 + + + + + +
      {
+ +191 + + +1 + +1. myPrint : removed call to java/io/PrintStream::println → KILLED
+ +
+
         System.out.println(message);
+ +192 + + + + + +
      }
+ +193 + + +1 + +1. myPrint : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(message);
+ +194 + + + + + +
   }
+ +195 + + + + + +
+ +196 + + + + + +
   // **********************************************************************
+ +197 + + + + + +
   // private
+ +198 + + + + + +
   // **********************************************************************
+ +199 + + + + + +
   // ******** attributes
+ +200 + + + + + +
   private int MyPrintCount;
+ +201 + + + + + +
   private String MyTracesName;
+ +202 + + + + + +
   private MyStorage MyTraces;
+ +203 + + + + + +
   private boolean ShouldPrintOnStdout;
+ +204 + + + + + +
}

Mutations

25 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED

+
43 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED

+
61 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED

+
79 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED

+
96 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
changed conditional boundary → KILLED

2.2
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
107 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
changed conditional boundary → KILLED

2.2
Location : run
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3.3
Location : run
Killed by : none
negated conditional → TIMED_OUT

+
112 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED

+
113 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED

+
114 + + + +

1.1
Location : run
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → SURVIVED

+
116 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::saveData → KILLED

+
138 + + + +

1.1
Location : getMyPrintCount
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
144 + + + +

1.1
Location : getMyTracesName
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
150 + + + +

1.1
Location : getShouldPrintOnStdout
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
167 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
172 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
178 + + + +

1.1
Location : getMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
189 + + + +

1.1
Location : myPrint
Killed by : none
negated conditional → SURVIVED

+
191 + + + +

1.1
Location : myPrint
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
removed call to java/io/PrintStream::println → KILLED

+
193 + + + +

1.1
Location : myPrint
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.testSessionBis2(eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest) (7 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.testGlobalAppBisRun2(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.testGlobalMixedBis1HelloAppRun(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest) (4 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.testGlobalAppBisRun1(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (16 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/index.html b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/index.html new file mode 100644 index 0000000..0b600fb --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooHello

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
193%
71/76
83%
19/23
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
HelloApp.java
93%
71/76
83%
19/23
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html new file mode 100644 index 0000000..cd3ccf2 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html @@ -0,0 +1,3386 @@ + + + + + + + + +

MyLogger.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooLogs;
+ +2 + + + + + +
+ +3 + + + + + +
import java.io.File;
+ +4 + + + + + +
import java.util.Locale;
+ +5 + + + + + +
// **********************************************************************
+ +6 + + + + + +
import java.util.logging.ConsoleHandler;
+ +7 + + + + + +
import java.util.logging.FileHandler;
+ +8 + + + + + +
import java.util.logging.Formatter;
+ +9 + + + + + +
import java.util.logging.Handler;
+ +10 + + + + + +
import java.util.logging.Level;
+ +11 + + + + + +
import java.util.logging.Logger;
+ +12 + + + + + +
import java.util.logging.SimpleFormatter;
+ +13 + + + + + +
+ +14 + + + + + +
// **********************************************************************
+ +15 + + + + + +
public class MyLogger
+ +16 + + + + + +
{
+ +17 + + + + + +
   // **********************************************************************
+ +18 + + + + + +
   // public
+ +19 + + + + + +
   // **********************************************************************
+ +20 + + + + + +
   // ******** attributes
+ +21 + + + + + +
   public static String LogFileName = "dnoo.log";
+ +22 + + + + + +
+ +23 + + + + + +
   // **********************************************************************
+ +24 + + + + + +
   // Level: String, public read/write class attribute
+ +25 + + + + + +
   // levels: "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER",
+ +26 + + + + + +
   //   "FINEST", "ALL"
+ +27 + + + + + +
   public static String getLevel()
+ +28 + + + + + +
   {
+ +29 + + + + + +
      Level currentLevel = getLogger().getLevel();
+ +30 + + +1 + +1. getLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(levelToString(currentLevel));
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // ***********
+ +34 + + + + + +
   public static void setLevel(String level)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      getLogger().setLevel(stringToLevel(level));
+ +37 + + + + + +
      Instance.StdLogHandler.setLevel(stringToLevel(level));
+ +38 + + + + + +
   }
+ +39 + + + + + +
+ +40 + + + + + +
   // **********************************************************************
+ +41 + + + + + +
   // ******** methods
+ +42 + + + + + +
   public static Logger getLogger()
+ +43 + + + + + +
   {
+ +44 + + +1 + +1. getLogger : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → KILLED
+ +
+
      initLogs();
+ +45 + + +1 + +1. getLogger : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(Instance.StandardLogger);
+ +46 + + + + + +
   }
+ +47 + + + + + +
+ +48 + + + + + +
   // **********************************************************************
+ +49 + + + + + +
   public static void clearLogs()
+ +50 + + + + + +
   {
+ +51 + + + + + +
      File theFile = null;
+ +52 + + + + + +
+ +53 + + +1 + +1. clearLogs : negated conditional → KILLED
+ +
+
      if (Instance != null)
+ +54 + + + + + +
      {
+ +55 + + + + + +
         Instance.StdLogHandler = null;
+ +56 + + + + + +
         Instance.StandardLogger = null;
+ +57 + + + + + +
         Instance = null;
+ +58 + + + + + +
      }
+ +59 + + + + + +
      // delete file if it already exists
+ +60 + + + + + +
      theFile = new File(LogFileName);
+ +61 + + +1 + +1. clearLogs : negated conditional → KILLED
+ +
+
      if (theFile.exists())
+ +62 + + + + + +
      {
+ +63 + + + + + +
         theFile.delete();
+ +64 + + + + + +
      }
+ +65 + + + + + +
+ +66 + + + + + +
      return;
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   // protected
+ +71 + + + + + +
   // **********************************************************************
+ +72 + + + + + +
   // ******** attributes
+ +73 + + + + + +
   protected static MyLogger Instance = null;
+ +74 + + + + + +
   protected Logger StandardLogger = null;
+ +75 + + + + + +
   protected Handler StdLogHandler = null;
+ +76 + + + + + +
   protected MyUselessClass MyValues = null;
+ +77 + + + + + +
+ +78 + + + + + +
   // **********************************************************************
+ +79 + + + + + +
   // ******** methods
+ +80 + + + + + +
   protected static Level stringToLevel(String level)
+ +81 + + + + + +
   {
+ +82 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +83 + + + + + +
      Level theLevel = Level.WARNING;
+ +84 + + + + + +
+ +85 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      if (level.equals("OFF"))
+ +86 + + + + + +
      {
+ +87 + + + + + +
         theLevel = Level.OFF;
+ +88 + + + + + +
      }
+ +89 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("SEVERE"))
+ +90 + + + + + +
      {
+ +91 + + + + + +
         theLevel = Level.SEVERE;
+ +92 + + + + + +
      }
+ +93 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("WARNING"))
+ +94 + + + + + +
      {
+ +95 + + + + + +
         theLevel = Level.WARNING;
+ +96 + + + + + +
      }
+ +97 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("INFO"))
+ +98 + + + + + +
      {
+ +99 + + + + + +
         theLevel = Level.INFO;
+ +100 + + + + + +
      }
+ +101 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("CONFIG"))
+ +102 + + + + + +
      {
+ +103 + + + + + +
         theLevel = Level.CONFIG;
+ +104 + + + + + +
      }
+ +105 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINE"))
+ +106 + + + + + +
      {
+ +107 + + + + + +
         theLevel = Level.FINE;
+ +108 + + + + + +
      }
+ +109 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINER"))
+ +110 + + + + + +
      {
+ +111 + + + + + +
         theLevel = Level.FINER;
+ +112 + + + + + +
      }
+ +113 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINEST"))
+ +114 + + + + + +
      {
+ +115 + + + + + +
         theLevel = Level.FINEST;
+ +116 + + + + + +
      }
+ +117 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("ALL"))
+ +118 + + + + + +
      {
+ +119 + + + + + +
         theLevel = Level.ALL;
+ +120 + + + + + +
      }
+ +121 + + + + + +
+ +122 + + +1 + +1. stringToLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +123 + + + + + +
   }
+ +124 + + + + + +
+ +125 + + + + + +
   // **********************************************************************
+ +126 + + + + + +
   protected static String levelToString(Level level)
+ +127 + + + + + +
   {
+ +128 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +129 + + + + + +
      String theLevel = "WARNING";
+ +130 + + + + + +
+ +131 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      if (level == Level.OFF)
+ +132 + + + + + +
      {
+ +133 + + + + + +
         theLevel = "OFF";
+ +134 + + + + + +
      }
+ +135 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.SEVERE)
+ +136 + + + + + +
      {
+ +137 + + + + + +
         theLevel = "SEVERE";
+ +138 + + + + + +
      }
+ +139 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.WARNING)
+ +140 + + + + + +
      {
+ +141 + + + + + +
         theLevel = "WARNING";
+ +142 + + + + + +
      }
+ +143 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.INFO)
+ +144 + + + + + +
      {
+ +145 + + + + + +
         theLevel = "INFO";
+ +146 + + + + + +
      }
+ +147 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.CONFIG)
+ +148 + + + + + +
      {
+ +149 + + + + + +
         theLevel = "CONFIG";
+ +150 + + + + + +
      }
+ +151 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINE)
+ +152 + + + + + +
      {
+ +153 + + + + + +
         theLevel = "FINE";
+ +154 + + + + + +
      }
+ +155 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINER)
+ +156 + + + + + +
      {
+ +157 + + + + + +
         theLevel = "FINER";
+ +158 + + + + + +
      }
+ +159 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINEST)
+ +160 + + + + + +
      {
+ +161 + + + + + +
         theLevel = "FINEST";
+ +162 + + + + + +
      }
+ +163 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.ALL)
+ +164 + + + + + +
      {
+ +165 + + + + + +
         theLevel = "ALL";
+ +166 + + + + + +
      }
+ +167 + + + + + +
+ +168 + + +1 + +1. levelToString : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +169 + + + + + +
   }
+ +170 + + + + + +
+ +171 + + + + + +
   // **********************************************************************
+ +172 + + + + + +
   protected static void initLogs()
+ +173 + + + + + +
   {
+ +174 + + + + + +
      Formatter logFormater = null;
+ +175 + + + + + +
      boolean fileCreated = false;
+ +176 + + +1 + +1. initLogs : removed call to java/util/Locale::setDefault → KILLED
+ +
+
      Locale.setDefault(Locale.ENGLISH);
+ +177 + + + + + +
+ +178 + + +1 + +1. initLogs : negated conditional → KILLED
+ +
+
      if (Instance == null)
+ +179 + + + + + +
      {
+ +180 + + + + + +
         Instance = new MyLogger();
+ +181 + + + + + +
         Instance.StandardLogger = Logger.getLogger(MyLogger.class.getName());
+ +182 + + + + + +
         Instance.StandardLogger.setUseParentHandlers(false);
+ +183 + + + + + +
         Instance.MyValues = new MyUselessClass();
+ +184 + + + + + +
   
+ +185 + + + + + +
         try
+ +186 + + + + + +
         {
+ +187 + + + + + +
            Instance.StdLogHandler = new FileHandler(LogFileName, false);
+ +188 + + + + + +
            Instance.StdLogHandler.setFormatter(new SimpleFormatter());
+ +189 + + + + + +
            fileCreated = true;
+ +190 + + + + + +
         }
+ +191 + + + + + +
         catch (Exception e)
+ +192 + + + + + +
         {
+ +193 + + + + + +
            Instance.StdLogHandler = new ConsoleHandler();
+ +194 + + + + + +
         }
+ +195 + + + + + +
         Instance.StandardLogger.addHandler(Instance.StdLogHandler);
+ +196 + + + + + +
   
+ +197 + + + + + +
         Instance.StandardLogger.setLevel(Level.WARNING);
+ +198 + + + + + +
         Instance.StdLogHandler.setLevel(Level.WARNING);
+ +199 + + + + + +
   
+ +200 + + +1 + +1. initLogs : negated conditional → KILLED
+ +
+
         if (fileCreated)
+ +201 + + + + + +
         {
+ +202 + + + + + +
            Instance.StandardLogger.info("Log file created");
+ +203 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → KILLED
+ +
+
            Instance.MyValues.setAll();
+ +204 + + + + + +
         }
+ +205 + + + + + +
         else
+ +206 + + + + + +
         {
+ +207 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE
+ +
+
            Instance.MyValues.clearAll();
+ +208 + + + + + +
            Instance.StandardLogger.warning
+ +209 + + + + + +
               ("Cannot create log file, redirecting logs to the console");
+ +210 + + + + + +
         }
+ +211 + + + + + +
      }
+ +212 + + + + + +
   }
+ +213 + + + + + +
}

Mutations

30 + + + +

1.1
Location : getLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
44 + + + +

1.1
Location : getLogger
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.testGlobalAppBisRun1(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest)
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → KILLED

+
45 + + + +

1.1
Location : getLogger
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
53 + + + +

1.1
Location : clearLogs
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
negated conditional → KILLED

+
61 + + + +

1.1
Location : clearLogs
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
negated conditional → KILLED

+
85 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
89 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
93 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
97 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
101 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
109 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
113 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
122 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
131 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
135 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
139 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
143 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
147 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
151 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
155 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
159 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
163 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
168 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
176 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
removed call to java/util/Locale::setDefault → KILLED

+
178 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
200 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
negated conditional → KILLED

+
203 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → KILLED

+
207 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.testSessionBis2(eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest) (7 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (15 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.testGlobalAppBisRun2(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.testGlobalMixedBis2SaveReadData(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.testGlobalMixedBis1HelloAppRun(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest) (4 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.testGlobalAppBisRun1(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (16 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/index.html b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/index.html new file mode 100644 index 0000000..57ea6e6 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooLogs

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
180%
69/86
97%
29/30
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyLogger.java
80%
69/86
97%
29/30
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html new file mode 100644 index 0000000..b7171e3 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html @@ -0,0 +1,3544 @@ + + + + + + + + +

MyStorage.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooStorage;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import java.io.PrintStream;
+ +5 + + + + + +
import java.io.BufferedReader;
+ +6 + + + + + +
import java.io.FileReader;
+ +7 + + + + + +
import java.io.IOException;
+ +8 + + + + + +
import java.io.File;
+ +9 + + + + + +
import java.util.*;
+ +10 + + + + + +
+ +11 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +12 + + + + + +
+ +13 + + + + + +
// **********************************************************************
+ +14 + + + + + +
public class MyStorage
+ +15 + + + + + +
{
+ +16 + + + + + +
   // **********************************************************************
+ +17 + + + + + +
   // public
+ +18 + + + + + +
   // **********************************************************************
+ +19 + + + + + +
   // ******** methods
+ +20 + + + + + +
+ +21 + + + + + +
   // **********************************************************************
+ +22 + + + + + +
   public static void deleteFile(String fileName)
+ +23 + + + + + +
   {
+ +24 + + + + + +
      String methodName = "deleteFile";
+ +25 + + + + + +
      MyLogger.getLogger().entering("MyStorage", methodName);
+ +26 + + + + + +
+ +27 + + + + + +
      File theFile = null;
+ +28 + + + + + +
+ +29 + + + + + +
      // delete file if it already exists
+ +30 + + + + + +
      theFile = new File(fileName);
+ +31 + + +1 + +1. deleteFile : negated conditional → KILLED
+ +
+
      if (theFile.exists())
+ +32 + + + + + +
      {
+ +33 + + + + + +
         theFile.delete();
+ +34 + + + + + +
      }
+ +35 + + + + + +
+ +36 + + + + + +
      MyLogger.getLogger().exiting("MyStorage", methodName);
+ +37 + + + + + +
   }
+ +38 + + + + + +
+ +39 + + + + + +
   // **********************************************************************
+ +40 + + + + + +
   public MyStorage()
+ +41 + + + + + +
   {
+ +42 + + + + + +
      String methodName = "MyStorage";
+ +43 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +44 + + + + + +
+ +45 + + + + + +
      FileName = "my_storage.txt";
+ +46 + + + + + +
      MyData = new ArrayList<String>();
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public MyStorage(String fileName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "MyStorage_String";
+ +55 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      this.FileName = fileName;
+ +58 + + + + + +
      MyData = new ArrayList<String>();
+ +59 + + + + + +
+ +60 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +61 + + + + + +
   }
+ +62 + + + + + +
+ +63 + + + + + +
   // **********************************************************************
+ +64 + + + + + +
   public void readData()
+ +65 + + + + + +
   {
+ +66 + + + + + +
      String methodName = "readData";
+ +67 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +68 + + + + + +
+ +69 + + + + + +
      BufferedReader myBuffer = null;
+ +70 + + + + + +
      FileReader myFile = null;
+ +71 + + + + + +
      String currentLine;
+ +72 + + + + + +
+ +73 + + + + + +
      try
+ +74 + + + + + +
      {
+ +75 + + + + + +
         myFile = new FileReader(FileName);
+ +76 + + + + + +
         myBuffer = new BufferedReader(myFile);
+ +77 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         while ((currentLine = myBuffer.readLine()) != null)
+ +78 + + + + + +
         {
+ +79 + + +1 + +1. readData : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
            addData(currentLine);
+ +80 + + + + + +
         }
+ +81 + + + + + +
      }
+ +82 + + + + + +
      catch(IOException e)
+ +83 + + + + + +
      {
+ +84 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot read " + FileName);
+ +85 + + + + + +
      }
+ +86 + + + + + +
+ +87 + + + + + +
      try
+ +88 + + + + + +
      {
+ +89 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         if (myBuffer != null)
+ +90 + + + + + +
         {
+ +91 + + +1 + +1. readData : removed call to java/io/BufferedReader::close → KILLED
+ +
+
            myBuffer.close();
+ +92 + + + + + +
         }
+ +93 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         if (myFile != null)
+ +94 + + + + + +
         {
+ +95 + + +1 + +1. readData : removed call to java/io/FileReader::close → KILLED
+ +
+
            myFile.close();
+ +96 + + + + + +
         }
+ +97 + + + + + +
      }
+ +98 + + + + + +
      catch(IOException e)
+ +99 + + + + + +
      {
+ +100 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: closing " + FileName);
+ +101 + + + + + +
      }
+ +102 + + + + + +
+ +103 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +104 + + + + + +
   }
+ +105 + + + + + +
+ +106 + + + + + +
   // **********************************************************************
+ +107 + + + + + +
   public void saveData()
+ +108 + + + + + +
   {
+ +109 + + + + + +
      String methodName = "saveData";
+ +110 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +111 + + + + + +
+ +112 + + + + + +
      try
+ +113 + + + + + +
      {
+ +114 + + + + + +
         PrintStream writer = new PrintStream(new File(FileName));
+ +115 + + +2 + +1. saveData : changed conditional boundary → KILLED
+2. saveData : negated conditional → KILLED
+ +
+
         for (int i = 0; i < getDataSize(); i++)
+ +116 + + + + + +
         {
+ +117 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → KILLED
+ +
+
            writer.println(getData(i));
+ +118 + + + + + +
         }
+ +119 + + +1 + +1. saveData : removed call to java/io/PrintStream::close → SURVIVED
+ +
+
         writer.close();
+ +120 + + + + + +
      }
+ +121 + + + + + +
      catch(IOException e)
+ +122 + + + + + +
      {
+ +123 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot write into " + FileName);
+ +124 + + + + + +
      }
+ +125 + + + + + +
+ +126 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +127 + + + + + +
   }
+ +128 + + + + + +
+ +129 + + + + + +
   // **********************************************************************
+ +130 + + + + + +
   public boolean isEqual(MyStorage anotherStorage)
+ +131 + + + + + +
   {
+ +132 + + + + + +
      String methodName = "isEqual";
+ +133 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +134 + + + + + +
+ +135 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == anotherStorage.getDataSize());
+ +136 + + + + + +
+ +137 + + +4 + +1. isEqual : changed conditional boundary → KILLED
+2. isEqual : Changed increment from 1 to -1 → KILLED
+3. isEqual : negated conditional → KILLED
+4. isEqual : negated conditional → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +138 + + + + + +
      {
+ +139 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(anotherStorage.getData(i))))
+ +140 + + + + + +
         {
+ +141 + + + + + +
            areEqual = false;
+ +142 + + + + + +
         } 
+ +143 + + + + + +
      }
+ +144 + + + + + +
+ +145 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +146 + + +1 + +1. isEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +147 + + + + + +
   }
+ +148 + + + + + +
+ +149 + + + + + +
   // **********************************************************************
+ +150 + + + + + +
   public boolean dataAreEqual(ArrayList<String> otherData)
+ +151 + + + + + +
   {
+ +152 + + + + + +
      String methodName = "dataAreEqual";
+ +153 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +154 + + + + + +
+ +155 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == otherData.size());
+ +156 + + + + + +
+ +157 + + +4 + +1. dataAreEqual : negated conditional → SURVIVED
+2. dataAreEqual : negated conditional → SURVIVED
+3. dataAreEqual : changed conditional boundary → KILLED
+4. dataAreEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +158 + + + + + +
      {
+ +159 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(otherData.get(i))))
+ +160 + + + + + +
         {
+ +161 + + + + + +
            areEqual = false;
+ +162 + + + + + +
         } 
+ +163 + + + + + +
      }
+ +164 + + + + + +
+ +165 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +166 + + +1 + +1. dataAreEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +167 + + + + + +
   }
+ +168 + + + + + +
+ +169 + + + + + +
   // **********************************************************************
+ +170 + + + + + +
   // ******** attributes
+ +171 + + + + + +
+ +172 + + + + + +
   // **********************************************************************
+ +173 + + + + + +
   public String getFileName()
+ +174 + + + + + +
   {
+ +175 + + +1 + +1. getFileName : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(FileName);
+ +176 + + + + + +
   }
+ +177 + + + + + +
+ +178 + + + + + +
   // **********************************************************************
+ +179 + + + + + +
   public int getDataSize()
+ +180 + + + + + +
   {
+ +181 + + +1 + +1. getDataSize : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyData.size());
+ +182 + + + + + +
   }
+ +183 + + + + + +
+ +184 + + + + + +
   // **********************************************************************
+ +185 + + + + + +
   public String getData(int index)
+ +186 + + + + + +
   {
+ +187 + + +1 + +1. getData : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyData.get(index));
+ +188 + + + + + +
   }
+ +189 + + + + + +
+ +190 + + + + + +
   // **********************************************************************
+ +191 + + + + + +
   public void addData(String aData)
+ +192 + + + + + +
   {
+ +193 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize())
+ +194 + + + + + +
         + " - aData = " + aData);
+ +195 + + + + + +
+ +196 + + + + + +
      MyData.add(aData);
+ +197 + + + + + +
+ +198 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize()));
+ +199 + + + + + +
   }
+ +200 + + + + + +
+ +201 + + + + + +
   // **********************************************************************
+ +202 + + + + + +
   public void delData(String aData)
+ +203 + + + + + +
   {
+ +204 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize()));
+ +205 + + + + + +
+ +206 + + + + + +
      boolean found = false;
+ +207 + + + + + +
+ +208 + + +4 + +1. delData : changed conditional boundary → NO_COVERAGE
+2. delData : Changed increment from 1 to -1 → NO_COVERAGE
+3. delData : negated conditional → NO_COVERAGE
+4. delData : negated conditional → NO_COVERAGE
+ +
+
      for (int i = 0; i < getDataSize() && ! found; i++)
+ +209 + + + + + +
      {
+ +210 + + +1 + +1. delData : negated conditional → NO_COVERAGE
+ +
+
         if (getData(i).equals(aData))
+ +211 + + + + + +
         {
+ +212 + + + + + +
            MyData.remove(i);
+ +213 + + + + + +
            found = true;
+ +214 + + + + + +
         } 
+ +215 + + + + + +
      } 
+ +216 + + + + + +
+ +217 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize())
+ +218 + + + + + +
         + " - found = " + Boolean.toString(found));
+ +219 + + + + + +
   }
+ +220 + + + + + +
+ +221 + + + + + +
   // **********************************************************************
+ +222 + + + + + +
   // private
+ +223 + + + + + +
   // **********************************************************************
+ +224 + + + + + +
   // ******** attributes
+ +225 + + + + + +
   private String FileName;
+ +226 + + + + + +
   private ArrayList<String> MyData;
+ +227 + + + + + +
}

Mutations

31 + + + +

1.1
Location : deleteFile
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
77 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
79 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
84 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
89 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
negated conditional → KILLED

+
91 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
removed call to java/io/BufferedReader::close → KILLED

+
93 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
negated conditional → KILLED

+
95 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
removed call to java/io/FileReader::close → KILLED

+
100 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
115 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to java/io/PrintStream::println → KILLED

+
119 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::close → SURVIVED

+
123 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
135 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
137 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
negated conditional → KILLED

4.4
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest)
negated conditional → KILLED

+
139 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
146 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
155 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
157 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

+
159 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
166 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
175 + + + +

1.1
Location : getFileName
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
181 + + + +

1.1
Location : getDataSize
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
187 + + + +

1.1
Location : getData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
208 + + + +

1.1
Location : delData
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : delData
Killed by : none
Changed increment from 1 to -1 → NO_COVERAGE

3.3
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
210 + + + +

1.1
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.testSessionBis2(eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest) (7 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (15 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.testSessionBis1(eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.testGlobalAppBisRun2(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.testGlobalMixedBis2SaveReadData(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.testGlobalMixedBis1HelloAppRun(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest) (4 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.testGlobalAppBisRun1(eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (16 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/index.html b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/index.html new file mode 100644 index 0000000..ade56e4 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooStorage

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
180%
68/85
69%
25/36
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyStorage.java
80%
68/85
69%
25/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/index.html b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/index.html new file mode 100644 index 0000000..20bbd5b --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/index.html @@ -0,0 +1,73 @@ + + + + + + + +

Pit Test Coverage Report

+ +

Project Summary

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
384%
208/247
82%
73/89
+ + +

Breakdown by Package

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameNumber of ClassesLine CoverageMutation Coverage
eu.stamp_project.examples.dnoo.dnooHello1
93%
71/76
83%
19/23
eu.stamp_project.examples.dnoo.dnooLogs1
80%
69/86
97%
29/30
eu.stamp_project.examples.dnoo.dnooStorage1
80%
68/85
69%
25/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/style.css b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/style.css new file mode 100644 index 0000000..cd65bd3 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/pit-reports/201804231937/style.css @@ -0,0 +1,563 @@ +html, body, div, span, p, blockquote, pre { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body{ + line-height: 1; + color: black; + background: white; + margin-left: 20px; +} + +.src { + border: 1px solid #dddddd; + padding-top: 10px; + padding-right: 5px; + padding-left: 5px; + font-family: Consolas, Courier, monospace; +} + +.covered { + background-color: #ddffdd; +} + +.uncovered { + background-color: #ffdddd; +} + +.killed, .KILLED { + background-color: #aaffaa; +} + +.survived, .SURVIVED { + background-color: #ffaaaa; +} + +.uncertain { + background-color: #dde7ef; +} + +.run_error { + background-color: #dde7ef; +} + +.na { + background-color: #eeeeee; +} + +.timed_out { + background-color: #dde7ef; +} + +.non_viable { + background-color: #aaffaa; +} + +.memory_error { + background-color: #dde7ef; +} + +.not_started { + background-color: #dde7ef; color : red +} + +.no_coverage { + background-color: #ffaaaa; +} + +.tests { + width: 50%; + float: left; +} + +.mutees { + float: right; + width: 50%; +} + +.unit { + padding-top: 20px; + clear: both; +} + +.coverage_bar { + display: inline-block; + height: 1.1em; + width: 130px; + background: #FAA; + margin: 0 5px; + vertical-align: middle; + border: 1px solid #AAA; + position: relative; +} + +.coverage_complete { + display: inline-block; + height: 100%; + background: #DFD; + float: left; +} + +.coverage_legend { + position: absolute; + height: 100%; + width: 100%; + left: 0; + top: 0; + text-align: center; +} + +.line, .mut { + vertical-align: middle; +} + +.coverage_percentage { + display: inline-block; + width: 3em; + text-align: right; +} + +.pop { + outline:none; +} + +.pop strong { + line-height: 30px; +} + +.pop { + text-decoration: none; +} + +.pop span { + z-index: 10; + display: none; + padding: 14px 20px; + margin-top: -30px; + margin-left: 28px; + width: 800px; + line-height: 16px; + word-wrap: break-word; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -moz-box-shadow: 5px 5px 8px #CCC; + -webkit-box-shadow: 5px 5px 8px #CCC; + box-shadow: 5px 5px 8px #CCC; +} + +.pop:hover span { + display: inline; + position: absolute; + color: #111; + border: 1px solid #DCA; + background: #fffAF0; +} + +.width-1 { + width: 1%; +} + +.width-2 { + width: 2%; +} + +.width-3 { + width: 3%; +} + +.width-4 { + width: 4%; +} + +.width-5 { + width: 5%; +} + +.width-6 { + width: 6%; +} + +.width-7 { + width: 7%; +} + +.width-8 { + width: 8%; +} + +.width-9 { + width: 9%; +} + +.width-10 { + width: 10%; +} + +.width-11 { + width: 11%; +} + +.width-12 { + width: 12%; +} + +.width-13 { + width: 13%; +} + +.width-14 { + width: 14%; +} + +.width-15 { + width: 15%; +} + +.width-16 { + width: 16%; +} + +.width-17 { + width: 17%; +} + +.width-18 { + width: 18%; +} + +.width-19 { + width: 19%; +} + +.width-20 { + width: 20%; +} + +.width-21 { + width: 21%; +} + +.width-22 { + width: 22%; +} + +.width-23 { + width: 23%; +} + +.width-24 { + width: 24%; +} + +.width-25 { + width: 25%; +} + +.width-26 { + width: 26%; +} + +.width-27 { + width: 27%; +} + +.width-28 { + width: 28%; +} + +.width-29 { + width: 29%; +} + +.width-30 { + width: 30%; +} + +.width-31 { + width: 31%; +} + +.width-32 { + width: 32%; +} + +.width-33 { + width: 33%; +} + +.width-34 { + width: 34%; +} + +.width-35 { + width: 35%; +} + +.width-36 { + width: 36%; +} + +.width-37 { + width: 37%; +} + +.width-38 { + width: 38%; +} + +.width-39 { + width: 39%; +} + +.width-40 { + width: 40%; +} + +.width-41 { + width: 41%; +} + +.width-42 { + width: 42%; +} + +.width-43 { + width: 43%; +} + +.width-44 { + width: 44%; +} + +.width-45 { + width: 45%; +} + +.width-46 { + width: 46%; +} + +.width-47 { + width: 47%; +} + +.width-48 { + width: 48%; +} + +.width-49 { + width: 49%; +} + +.width-50 { + width: 50%; +} + +.width-51 { + width: 51%; +} + +.width-52 { + width: 52%; +} + +.width-53 { + width: 53%; +} + +.width-54 { + width: 54%; +} + +.width-55 { + width: 55%; +} + +.width-56 { + width: 56%; +} + +.width-57 { + width: 57%; +} + +.width-58 { + width: 58%; +} + +.width-59 { + width: 59%; +} + +.width-60 { + width: 60%; +} + +.width-61 { + width: 61%; +} + +.width-62 { + width: 62%; +} + +.width-63 { + width: 63%; +} + +.width-64 { + width: 64%; +} + +.width-65 { + width: 65%; +} + +.width-66 { + width: 66%; +} + +.width-67 { + width: 67%; +} + +.width-68 { + width: 68%; +} + +.width-69 { + width: 69%; +} + +.width-70 { + width: 70%; +} + +.width-71 { + width: 71%; +} + +.width-72 { + width: 72%; +} + +.width-73 { + width: 73%; +} + +.width-74 { + width: 74%; +} + +.width-75 { + width: 75%; +} + +.width-76 { + width: 76%; +} + +.width-77 { + width: 77%; +} + +.width-78 { + width: 78%; +} + +.width-79 { + width: 79%; +} + +.width-80 { + width: 80%; +} + +.width-81 { + width: 81%; +} + +.width-82 { + width: 82%; +} + +.width-83 { + width: 83%; +} + +.width-84 { + width: 84%; +} + +.width-85 { + width: 85%; +} + +.width-86 { + width: 86%; +} + +.width-87 { + width: 87%; +} + +.width-88 { + width: 88%; +} + +.width-89 { + width: 89%; +} + +.width-90 { + width: 90%; +} + +.width-91 { + width: 91%; +} + +.width-92 { + width: 92%; +} + +.width-93 { + width: 93%; +} + +.width-94 { + width: 94%; +} + +.width-95 { + width: 95%; +} + +.width-96 { + width: 96%; +} + +.width-97 { + width: 97%; +} + +.width-98 { + width: 98%; +} + +.width-99 { + width: 99%; +} + +.width-100 { + width: 100%; +} \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.xml b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.xml new file mode 100644 index 0000000..53e8ed1 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.xml b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.xml new file mode 100644 index 0000000..949546e --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.xml b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.xml new file mode 100644 index 0000000..e5bab0c --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.xml b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.xml new file mode 100644 index 0000000..11eb350 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.txt b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.txt new file mode 100644 index 0000000..b9f29ae --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in eu.stamp_project.examples.dnoo.dnooIntegration.GlobalAppBisTest diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.txt b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.txt new file mode 100644 index 0000000..9f7dec6 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in eu.stamp_project.examples.dnoo.dnooIntegration.GlobalMixedBisTest diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.txt b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.txt new file mode 100644 index 0000000..a8f5848 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec - in eu.stamp_project.examples.dnoo.dnooIntegration.Session1BisTest diff --git a/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.txt b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.txt new file mode 100644 index 0000000..7cfeba2 --- /dev/null +++ b/test_dir/dnoo/dnooIntegration/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in eu.stamp_project.examples.dnoo.dnooIntegration.Session2BisTest diff --git a/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.class b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.class new file mode 100644 index 0000000..7d64d4a Binary files /dev/null and b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalAppBisTest.class differ diff --git a/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.class b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.class new file mode 100644 index 0000000..cfa30d3 Binary files /dev/null and b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/GlobalMixedBisTest.class differ diff --git a/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.class b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.class new file mode 100644 index 0000000..ce5ba89 Binary files /dev/null and b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/Session1BisTest.class differ diff --git a/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.class b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.class new file mode 100644 index 0000000..419abb8 Binary files /dev/null and b/test_dir/dnoo/dnooIntegration/target/test-classes/eu/stamp_project/examples/dnoo/dnooIntegration/Session2BisTest.class differ diff --git a/test_dir/dnoo/dnooLogs/dnoo.log b/test_dir/dnoo/dnooLogs/dnoo.log new file mode 100644 index 0000000..69af2a3 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/dnoo.log @@ -0,0 +1,38 @@ +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLogger initLogs +WARNING: Cannot create log file, redirecting logs to the console +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooLogs/dnoo.log.1 b/test_dir/dnoo/dnooLogs/dnoo.log.1 new file mode 100644 index 0000000..a24a6c2 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/dnoo.log.1 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooLogs/dnoo.log.2 b/test_dir/dnoo/dnooLogs/dnoo.log.2 new file mode 100644 index 0000000..e69de29 diff --git a/test_dir/dnoo/dnooLogs/dnoo.log.3 b/test_dir/dnoo/dnooLogs/dnoo.log.3 new file mode 100644 index 0000000..a24a6c2 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/dnoo.log.3 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:54 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooLogs/pom.xml b/test_dir/dnoo/dnooLogs/pom.xml new file mode 100644 index 0000000..45ab471 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/pom.xml @@ -0,0 +1,23 @@ + + + 4.0.0 + + + eu.stamp-project + dnoo + 1.0.1 + + + dnooLogs + + + + junit + junit + test + + + + diff --git a/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.java b/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.java new file mode 100644 index 0000000..36d7f83 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.java @@ -0,0 +1,213 @@ +package eu.stamp_project.examples.dnoo.dnooLogs; + +import java.io.File; +import java.util.Locale; +// ********************************************************************** +import java.util.logging.ConsoleHandler; +import java.util.logging.FileHandler; +import java.util.logging.Formatter; +import java.util.logging.Handler; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.logging.SimpleFormatter; + +// ********************************************************************** +public class MyLogger +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** attributes + public static String LogFileName = "dnoo.log"; + + // ********************************************************************** + // Level: String, public read/write class attribute + // levels: "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", + // "FINEST", "ALL" + public static String getLevel() + { + Level currentLevel = getLogger().getLevel(); + return(levelToString(currentLevel)); + } + + // *********** + public static void setLevel(String level) + { + getLogger().setLevel(stringToLevel(level)); + Instance.StdLogHandler.setLevel(stringToLevel(level)); + } + + // ********************************************************************** + // ******** methods + public static Logger getLogger() + { + initLogs(); + return(Instance.StandardLogger); + } + + // ********************************************************************** + public static void clearLogs() + { + File theFile = null; + + if (Instance != null) + { + Instance.StdLogHandler = null; + Instance.StandardLogger = null; + Instance = null; + } + // delete file if it already exists + theFile = new File(LogFileName); + if (theFile.exists()) + { + theFile.delete(); + } + + return; + } + + // ********************************************************************** + // protected + // ********************************************************************** + // ******** attributes + protected static MyLogger Instance = null; + protected Logger StandardLogger = null; + protected Handler StdLogHandler = null; + protected MyUselessClass MyValues = null; + + // ********************************************************************** + // ******** methods + protected static Level stringToLevel(String level) + { + // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL + Level theLevel = Level.WARNING; + + if (level.equals("OFF")) + { + theLevel = Level.OFF; + } + else if (level.equals("SEVERE")) + { + theLevel = Level.SEVERE; + } + else if (level.equals("WARNING")) + { + theLevel = Level.WARNING; + } + else if (level.equals("INFO")) + { + theLevel = Level.INFO; + } + else if (level.equals("CONFIG")) + { + theLevel = Level.CONFIG; + } + else if (level.equals("FINE")) + { + theLevel = Level.FINE; + } + else if (level.equals("FINER")) + { + theLevel = Level.FINER; + } + else if (level.equals("FINEST")) + { + theLevel = Level.FINEST; + } + else if (level.equals("ALL")) + { + theLevel = Level.ALL; + } + + return(theLevel); + } + + // ********************************************************************** + protected static String levelToString(Level level) + { + // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL + String theLevel = "WARNING"; + + if (level == Level.OFF) + { + theLevel = "OFF"; + } + else if (level == Level.SEVERE) + { + theLevel = "SEVERE"; + } + else if (level == Level.WARNING) + { + theLevel = "WARNING"; + } + else if (level == Level.INFO) + { + theLevel = "INFO"; + } + else if (level == Level.CONFIG) + { + theLevel = "CONFIG"; + } + else if (level == Level.FINE) + { + theLevel = "FINE"; + } + else if (level == Level.FINER) + { + theLevel = "FINER"; + } + else if (level == Level.FINEST) + { + theLevel = "FINEST"; + } + else if (level == Level.ALL) + { + theLevel = "ALL"; + } + + return(theLevel); + } + + // ********************************************************************** + protected static void initLogs() + { + Formatter logFormater = null; + boolean fileCreated = false; + Locale.setDefault(Locale.ENGLISH); + + if (Instance == null) + { + Instance = new MyLogger(); + Instance.StandardLogger = Logger.getLogger(MyLogger.class.getName()); + Instance.StandardLogger.setUseParentHandlers(false); + Instance.MyValues = new MyUselessClass(); + + try + { + Instance.StdLogHandler = new FileHandler(LogFileName, false); + Instance.StdLogHandler.setFormatter(new SimpleFormatter()); + fileCreated = true; + } + catch (Exception e) + { + Instance.StdLogHandler = new ConsoleHandler(); + } + Instance.StandardLogger.addHandler(Instance.StdLogHandler); + + Instance.StandardLogger.setLevel(Level.WARNING); + Instance.StdLogHandler.setLevel(Level.WARNING); + + if (fileCreated) + { + Instance.StandardLogger.info("Log file created"); + Instance.MyValues.setAll(); + } + else + { + Instance.MyValues.clearAll(); + Instance.StandardLogger.warning + ("Cannot create log file, redirecting logs to the console"); + } + } + } +} diff --git a/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.java b/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.java new file mode 100644 index 0000000..81d68f3 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.java @@ -0,0 +1,66 @@ +package eu.stamp_project.examples.dnoo.dnooLogs; + +// ********************************************************************** +import java.util.logging.*; +import java.io.IOException; +import java.io.File; + +// ********************************************************************** +public class MyUselessClass +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** attributes + public String getAttribute1() + { + return(_Attribute1); + } + + // ******** + public void setAttribute1(String value) + { + _Attribute1 = value; + } + + // ********************************************************************** + public boolean getAttribute2() + { + return(_Attribute2); + } + + // ******** + public void setAttribute2(boolean value) + { + _Attribute2 = value; + } + + // ********************************************************************** + // ******** methods + public MyUselessClass() + { + setAttribute1("initial value"); + setAttribute2(true); + } + + // ********************************************************************** + public void setAll() + { + setAttribute1("another value"); + setAttribute2(false); + } + + // ********************************************************************** + public void clearAll() + { + setAttribute1("initial value"); + setAttribute2(true); + } + + // ********************************************************************** + // protected + // ********************************************************************** + // ******** attributes + protected String _Attribute1; + protected boolean _Attribute2; +} diff --git a/test_dir/dnoo/dnooLogs/src/test/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.java b/test_dir/dnoo/dnooLogs/src/test/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.java new file mode 100644 index 0000000..b0e6de6 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/src/test/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.java @@ -0,0 +1,49 @@ +package eu.stamp_project.examples.dnoo.dnooLogs; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import org.junit.Ignore; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +public class MyLoggerTest +{ + // ********************************************************************** + // public + // ********************************************************************** + // : to do: ignore it because it fails with pitest, so find why + @Ignore + @Test + public void testMyLoggerDefault() throws Exception + { + System.out.println("******** testMyLoggerDefault"); + + MyLogger.getLogger().info("testMyLoggerDefault - level = " + MyLogger.getLevel()); + assertEquals(MyLogger.getLevel(), "WARNING"); + } + + // ********************************************************************** + @Test + public void testMyLoggerSetLevel1() throws Exception + { + System.out.println("******** testMyLoggerSetLevel1"); + MyLogger.setLevel("FINE"); + + MyLogger.getLogger().info("testMyLoggerSetLevel1: FINE"); + assertEquals(MyLogger.getLevel(), "FINE"); + } + + // ********************************************************************** + @Test + public void testMyLoggerSetLevel2() throws Exception + { + System.out.println("******** testMyLoggerSetLevel2"); + MyLogger.setLevel("ALL"); + + MyLogger.getLogger().info("testMyLoggerSetLevel2: ALL"); + assertEquals(MyLogger.getLevel(), "ALL"); + } + +} diff --git a/test_dir/dnoo/dnooLogs/target/classes/eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.class b/test_dir/dnoo/dnooLogs/target/classes/eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.class new file mode 100644 index 0000000..8c179b5 Binary files /dev/null and b/test_dir/dnoo/dnooLogs/target/classes/eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.class differ diff --git a/test_dir/dnoo/dnooLogs/target/classes/eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.class b/test_dir/dnoo/dnooLogs/target/classes/eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.class new file mode 100644 index 0000000..48d1984 Binary files /dev/null and b/test_dir/dnoo/dnooLogs/target/classes/eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.class differ diff --git a/test_dir/dnoo/dnooLogs/target/dnooLogs-1.0.1.jar b/test_dir/dnoo/dnooLogs/target/dnooLogs-1.0.1.jar new file mode 100644 index 0000000..ebacb8c Binary files /dev/null and b/test_dir/dnoo/dnooLogs/target/dnooLogs-1.0.1.jar differ diff --git a/test_dir/dnoo/dnooLogs/target/maven-archiver/pom.properties b/test_dir/dnoo/dnooLogs/target/maven-archiver/pom.properties new file mode 100644 index 0000000..3daa659 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Apr 23 19:36:48 CEST 2018 +version=1.0.1 +groupId=eu.stamp-project +artifactId=dnooLogs diff --git a/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..e819859 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.class +eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.class diff --git a/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..7682d47 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLogger.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooLogs/src/main/java/eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass.java diff --git a/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..4730146 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.class diff --git a/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..0b5cda4 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooLogs/src/test/java/eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.java diff --git a/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html new file mode 100644 index 0000000..c4a743f --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html @@ -0,0 +1,3386 @@ + + + + + + + + +

MyLogger.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooLogs;
+ +2 + + + + + +
+ +3 + + + + + +
import java.io.File;
+ +4 + + + + + +
import java.util.Locale;
+ +5 + + + + + +
// **********************************************************************
+ +6 + + + + + +
import java.util.logging.ConsoleHandler;
+ +7 + + + + + +
import java.util.logging.FileHandler;
+ +8 + + + + + +
import java.util.logging.Formatter;
+ +9 + + + + + +
import java.util.logging.Handler;
+ +10 + + + + + +
import java.util.logging.Level;
+ +11 + + + + + +
import java.util.logging.Logger;
+ +12 + + + + + +
import java.util.logging.SimpleFormatter;
+ +13 + + + + + +
+ +14 + + + + + +
// **********************************************************************
+ +15 + + + + + +
public class MyLogger
+ +16 + + + + + +
{
+ +17 + + + + + +
   // **********************************************************************
+ +18 + + + + + +
   // public
+ +19 + + + + + +
   // **********************************************************************
+ +20 + + + + + +
   // ******** attributes
+ +21 + + + + + +
   public static String LogFileName = "dnoo.log";
+ +22 + + + + + +
+ +23 + + + + + +
   // **********************************************************************
+ +24 + + + + + +
   // Level: String, public read/write class attribute
+ +25 + + + + + +
   // levels: "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER",
+ +26 + + + + + +
   //   "FINEST", "ALL"
+ +27 + + + + + +
   public static String getLevel()
+ +28 + + + + + +
   {
+ +29 + + + + + +
      Level currentLevel = getLogger().getLevel();
+ +30 + + +1 + +1. getLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(levelToString(currentLevel));
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // ***********
+ +34 + + + + + +
   public static void setLevel(String level)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      getLogger().setLevel(stringToLevel(level));
+ +37 + + + + + +
      Instance.StdLogHandler.setLevel(stringToLevel(level));
+ +38 + + + + + +
   }
+ +39 + + + + + +
+ +40 + + + + + +
   // **********************************************************************
+ +41 + + + + + +
   // ******** methods
+ +42 + + + + + +
   public static Logger getLogger()
+ +43 + + + + + +
   {
+ +44 + + +1 + +1. getLogger : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → SURVIVED
+ +
+
      initLogs();
+ +45 + + +1 + +1. getLogger : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(Instance.StandardLogger);
+ +46 + + + + + +
   }
+ +47 + + + + + +
+ +48 + + + + + +
   // **********************************************************************
+ +49 + + + + + +
   public static void clearLogs()
+ +50 + + + + + +
   {
+ +51 + + + + + +
      File theFile = null;
+ +52 + + + + + +
+ +53 + + +1 + +1. clearLogs : negated conditional → NO_COVERAGE
+ +
+
      if (Instance != null)
+ +54 + + + + + +
      {
+ +55 + + + + + +
         Instance.StdLogHandler = null;
+ +56 + + + + + +
         Instance.StandardLogger = null;
+ +57 + + + + + +
         Instance = null;
+ +58 + + + + + +
      }
+ +59 + + + + + +
      // delete file if it already exists
+ +60 + + + + + +
      theFile = new File(LogFileName);
+ +61 + + +1 + +1. clearLogs : negated conditional → NO_COVERAGE
+ +
+
      if (theFile.exists())
+ +62 + + + + + +
      {
+ +63 + + + + + +
         theFile.delete();
+ +64 + + + + + +
      }
+ +65 + + + + + +
+ +66 + + + + + +
      return;
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   // protected
+ +71 + + + + + +
   // **********************************************************************
+ +72 + + + + + +
   // ******** attributes
+ +73 + + + + + +
   protected static MyLogger Instance = null;
+ +74 + + + + + +
   protected Logger StandardLogger = null;
+ +75 + + + + + +
   protected Handler StdLogHandler = null;
+ +76 + + + + + +
   protected MyUselessClass MyValues = null;
+ +77 + + + + + +
+ +78 + + + + + +
   // **********************************************************************
+ +79 + + + + + +
   // ******** methods
+ +80 + + + + + +
   protected static Level stringToLevel(String level)
+ +81 + + + + + +
   {
+ +82 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +83 + + + + + +
      Level theLevel = Level.WARNING;
+ +84 + + + + + +
+ +85 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      if (level.equals("OFF"))
+ +86 + + + + + +
      {
+ +87 + + + + + +
         theLevel = Level.OFF;
+ +88 + + + + + +
      }
+ +89 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("SEVERE"))
+ +90 + + + + + +
      {
+ +91 + + + + + +
         theLevel = Level.SEVERE;
+ +92 + + + + + +
      }
+ +93 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("WARNING"))
+ +94 + + + + + +
      {
+ +95 + + + + + +
         theLevel = Level.WARNING;
+ +96 + + + + + +
      }
+ +97 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("INFO"))
+ +98 + + + + + +
      {
+ +99 + + + + + +
         theLevel = Level.INFO;
+ +100 + + + + + +
      }
+ +101 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("CONFIG"))
+ +102 + + + + + +
      {
+ +103 + + + + + +
         theLevel = Level.CONFIG;
+ +104 + + + + + +
      }
+ +105 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINE"))
+ +106 + + + + + +
      {
+ +107 + + + + + +
         theLevel = Level.FINE;
+ +108 + + + + + +
      }
+ +109 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINER"))
+ +110 + + + + + +
      {
+ +111 + + + + + +
         theLevel = Level.FINER;
+ +112 + + + + + +
      }
+ +113 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINEST"))
+ +114 + + + + + +
      {
+ +115 + + + + + +
         theLevel = Level.FINEST;
+ +116 + + + + + +
      }
+ +117 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("ALL"))
+ +118 + + + + + +
      {
+ +119 + + + + + +
         theLevel = Level.ALL;
+ +120 + + + + + +
      }
+ +121 + + + + + +
+ +122 + + +1 + +1. stringToLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +123 + + + + + +
   }
+ +124 + + + + + +
+ +125 + + + + + +
   // **********************************************************************
+ +126 + + + + + +
   protected static String levelToString(Level level)
+ +127 + + + + + +
   {
+ +128 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +129 + + + + + +
      String theLevel = "WARNING";
+ +130 + + + + + +
+ +131 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      if (level == Level.OFF)
+ +132 + + + + + +
      {
+ +133 + + + + + +
         theLevel = "OFF";
+ +134 + + + + + +
      }
+ +135 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.SEVERE)
+ +136 + + + + + +
      {
+ +137 + + + + + +
         theLevel = "SEVERE";
+ +138 + + + + + +
      }
+ +139 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.WARNING)
+ +140 + + + + + +
      {
+ +141 + + + + + +
         theLevel = "WARNING";
+ +142 + + + + + +
      }
+ +143 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.INFO)
+ +144 + + + + + +
      {
+ +145 + + + + + +
         theLevel = "INFO";
+ +146 + + + + + +
      }
+ +147 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.CONFIG)
+ +148 + + + + + +
      {
+ +149 + + + + + +
         theLevel = "CONFIG";
+ +150 + + + + + +
      }
+ +151 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINE)
+ +152 + + + + + +
      {
+ +153 + + + + + +
         theLevel = "FINE";
+ +154 + + + + + +
      }
+ +155 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINER)
+ +156 + + + + + +
      {
+ +157 + + + + + +
         theLevel = "FINER";
+ +158 + + + + + +
      }
+ +159 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINEST)
+ +160 + + + + + +
      {
+ +161 + + + + + +
         theLevel = "FINEST";
+ +162 + + + + + +
      }
+ +163 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.ALL)
+ +164 + + + + + +
      {
+ +165 + + + + + +
         theLevel = "ALL";
+ +166 + + + + + +
      }
+ +167 + + + + + +
+ +168 + + +1 + +1. levelToString : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +169 + + + + + +
   }
+ +170 + + + + + +
+ +171 + + + + + +
   // **********************************************************************
+ +172 + + + + + +
   protected static void initLogs()
+ +173 + + + + + +
   {
+ +174 + + + + + +
      Formatter logFormater = null;
+ +175 + + + + + +
      boolean fileCreated = false;
+ +176 + + +1 + +1. initLogs : removed call to java/util/Locale::setDefault → SURVIVED
+ +
+
      Locale.setDefault(Locale.ENGLISH);
+ +177 + + + + + +
+ +178 + + +1 + +1. initLogs : negated conditional → KILLED
+ +
+
      if (Instance == null)
+ +179 + + + + + +
      {
+ +180 + + + + + +
         Instance = new MyLogger();
+ +181 + + + + + +
         Instance.StandardLogger = Logger.getLogger(MyLogger.class.getName());
+ +182 + + + + + +
         Instance.StandardLogger.setUseParentHandlers(false);
+ +183 + + + + + +
         Instance.MyValues = new MyUselessClass();
+ +184 + + + + + +
   
+ +185 + + + + + +
         try
+ +186 + + + + + +
         {
+ +187 + + + + + +
            Instance.StdLogHandler = new FileHandler(LogFileName, false);
+ +188 + + + + + +
            Instance.StdLogHandler.setFormatter(new SimpleFormatter());
+ +189 + + + + + +
            fileCreated = true;
+ +190 + + + + + +
         }
+ +191 + + + + + +
         catch (Exception e)
+ +192 + + + + + +
         {
+ +193 + + + + + +
            Instance.StdLogHandler = new ConsoleHandler();
+ +194 + + + + + +
         }
+ +195 + + + + + +
         Instance.StandardLogger.addHandler(Instance.StdLogHandler);
+ +196 + + + + + +
   
+ +197 + + + + + +
         Instance.StandardLogger.setLevel(Level.WARNING);
+ +198 + + + + + +
         Instance.StdLogHandler.setLevel(Level.WARNING);
+ +199 + + + + + +
   
+ +200 + + +1 + +1. initLogs : negated conditional → SURVIVED
+ +
+
         if (fileCreated)
+ +201 + + + + + +
         {
+ +202 + + + + + +
            Instance.StandardLogger.info("Log file created");
+ +203 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → SURVIVED
+ +
+
            Instance.MyValues.setAll();
+ +204 + + + + + +
         }
+ +205 + + + + + +
         else
+ +206 + + + + + +
         {
+ +207 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE
+ +
+
            Instance.MyValues.clearAll();
+ +208 + + + + + +
            Instance.StandardLogger.warning
+ +209 + + + + + +
               ("Cannot create log file, redirecting logs to the console");
+ +210 + + + + + +
         }
+ +211 + + + + + +
      }
+ +212 + + + + + +
   }
+ +213 + + + + + +
}

Mutations

30 + + + +

1.1
Location : getLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
44 + + + +

1.1
Location : getLogger
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → SURVIVED

+
45 + + + +

1.1
Location : getLogger
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
53 + + + +

1.1
Location : clearLogs
Killed by : none
negated conditional → NO_COVERAGE

+
61 + + + +

1.1
Location : clearLogs
Killed by : none
negated conditional → NO_COVERAGE

+
85 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
89 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
93 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
97 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
101 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
109 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
113 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
122 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
131 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
135 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
139 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
143 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
147 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
151 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
155 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
159 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
163 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
168 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
176 + + + +

1.1
Location : initLogs
Killed by : none
removed call to java/util/Locale::setDefault → SURVIVED

+
178 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
200 + + + +

1.1
Location : initLogs
Killed by : none
negated conditional → SURVIVED

+
203 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → SURVIVED

+
207 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (12 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (1 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html new file mode 100644 index 0000000..c41865e --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooLogs

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
167%
58/86
77%
23/30
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyLogger.java
67%
58/86
77%
23/30
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/index.html b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/index.html new file mode 100644 index 0000000..02251af --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/index.html @@ -0,0 +1,59 @@ + + + + + + + +

Pit Test Coverage Report

+ +

Project Summary

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
167%
58/86
77%
23/30
+ + +

Breakdown by Package

+ + + + + + + + + + + + + + + + + + + +
NameNumber of ClassesLine CoverageMutation Coverage
eu.stamp_project.examples.dnoo.dnooLogs1
67%
58/86
77%
23/30
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/style.css b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/style.css new file mode 100644 index 0000000..cd65bd3 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/pit-reports/201804231936/style.css @@ -0,0 +1,563 @@ +html, body, div, span, p, blockquote, pre { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body{ + line-height: 1; + color: black; + background: white; + margin-left: 20px; +} + +.src { + border: 1px solid #dddddd; + padding-top: 10px; + padding-right: 5px; + padding-left: 5px; + font-family: Consolas, Courier, monospace; +} + +.covered { + background-color: #ddffdd; +} + +.uncovered { + background-color: #ffdddd; +} + +.killed, .KILLED { + background-color: #aaffaa; +} + +.survived, .SURVIVED { + background-color: #ffaaaa; +} + +.uncertain { + background-color: #dde7ef; +} + +.run_error { + background-color: #dde7ef; +} + +.na { + background-color: #eeeeee; +} + +.timed_out { + background-color: #dde7ef; +} + +.non_viable { + background-color: #aaffaa; +} + +.memory_error { + background-color: #dde7ef; +} + +.not_started { + background-color: #dde7ef; color : red +} + +.no_coverage { + background-color: #ffaaaa; +} + +.tests { + width: 50%; + float: left; +} + +.mutees { + float: right; + width: 50%; +} + +.unit { + padding-top: 20px; + clear: both; +} + +.coverage_bar { + display: inline-block; + height: 1.1em; + width: 130px; + background: #FAA; + margin: 0 5px; + vertical-align: middle; + border: 1px solid #AAA; + position: relative; +} + +.coverage_complete { + display: inline-block; + height: 100%; + background: #DFD; + float: left; +} + +.coverage_legend { + position: absolute; + height: 100%; + width: 100%; + left: 0; + top: 0; + text-align: center; +} + +.line, .mut { + vertical-align: middle; +} + +.coverage_percentage { + display: inline-block; + width: 3em; + text-align: right; +} + +.pop { + outline:none; +} + +.pop strong { + line-height: 30px; +} + +.pop { + text-decoration: none; +} + +.pop span { + z-index: 10; + display: none; + padding: 14px 20px; + margin-top: -30px; + margin-left: 28px; + width: 800px; + line-height: 16px; + word-wrap: break-word; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -moz-box-shadow: 5px 5px 8px #CCC; + -webkit-box-shadow: 5px 5px 8px #CCC; + box-shadow: 5px 5px 8px #CCC; +} + +.pop:hover span { + display: inline; + position: absolute; + color: #111; + border: 1px solid #DCA; + background: #fffAF0; +} + +.width-1 { + width: 1%; +} + +.width-2 { + width: 2%; +} + +.width-3 { + width: 3%; +} + +.width-4 { + width: 4%; +} + +.width-5 { + width: 5%; +} + +.width-6 { + width: 6%; +} + +.width-7 { + width: 7%; +} + +.width-8 { + width: 8%; +} + +.width-9 { + width: 9%; +} + +.width-10 { + width: 10%; +} + +.width-11 { + width: 11%; +} + +.width-12 { + width: 12%; +} + +.width-13 { + width: 13%; +} + +.width-14 { + width: 14%; +} + +.width-15 { + width: 15%; +} + +.width-16 { + width: 16%; +} + +.width-17 { + width: 17%; +} + +.width-18 { + width: 18%; +} + +.width-19 { + width: 19%; +} + +.width-20 { + width: 20%; +} + +.width-21 { + width: 21%; +} + +.width-22 { + width: 22%; +} + +.width-23 { + width: 23%; +} + +.width-24 { + width: 24%; +} + +.width-25 { + width: 25%; +} + +.width-26 { + width: 26%; +} + +.width-27 { + width: 27%; +} + +.width-28 { + width: 28%; +} + +.width-29 { + width: 29%; +} + +.width-30 { + width: 30%; +} + +.width-31 { + width: 31%; +} + +.width-32 { + width: 32%; +} + +.width-33 { + width: 33%; +} + +.width-34 { + width: 34%; +} + +.width-35 { + width: 35%; +} + +.width-36 { + width: 36%; +} + +.width-37 { + width: 37%; +} + +.width-38 { + width: 38%; +} + +.width-39 { + width: 39%; +} + +.width-40 { + width: 40%; +} + +.width-41 { + width: 41%; +} + +.width-42 { + width: 42%; +} + +.width-43 { + width: 43%; +} + +.width-44 { + width: 44%; +} + +.width-45 { + width: 45%; +} + +.width-46 { + width: 46%; +} + +.width-47 { + width: 47%; +} + +.width-48 { + width: 48%; +} + +.width-49 { + width: 49%; +} + +.width-50 { + width: 50%; +} + +.width-51 { + width: 51%; +} + +.width-52 { + width: 52%; +} + +.width-53 { + width: 53%; +} + +.width-54 { + width: 54%; +} + +.width-55 { + width: 55%; +} + +.width-56 { + width: 56%; +} + +.width-57 { + width: 57%; +} + +.width-58 { + width: 58%; +} + +.width-59 { + width: 59%; +} + +.width-60 { + width: 60%; +} + +.width-61 { + width: 61%; +} + +.width-62 { + width: 62%; +} + +.width-63 { + width: 63%; +} + +.width-64 { + width: 64%; +} + +.width-65 { + width: 65%; +} + +.width-66 { + width: 66%; +} + +.width-67 { + width: 67%; +} + +.width-68 { + width: 68%; +} + +.width-69 { + width: 69%; +} + +.width-70 { + width: 70%; +} + +.width-71 { + width: 71%; +} + +.width-72 { + width: 72%; +} + +.width-73 { + width: 73%; +} + +.width-74 { + width: 74%; +} + +.width-75 { + width: 75%; +} + +.width-76 { + width: 76%; +} + +.width-77 { + width: 77%; +} + +.width-78 { + width: 78%; +} + +.width-79 { + width: 79%; +} + +.width-80 { + width: 80%; +} + +.width-81 { + width: 81%; +} + +.width-82 { + width: 82%; +} + +.width-83 { + width: 83%; +} + +.width-84 { + width: 84%; +} + +.width-85 { + width: 85%; +} + +.width-86 { + width: 86%; +} + +.width-87 { + width: 87%; +} + +.width-88 { + width: 88%; +} + +.width-89 { + width: 89%; +} + +.width-90 { + width: 90%; +} + +.width-91 { + width: 91%; +} + +.width-92 { + width: 92%; +} + +.width-93 { + width: 93%; +} + +.width-94 { + width: 94%; +} + +.width-95 { + width: 95%; +} + +.width-96 { + width: 96%; +} + +.width-97 { + width: 97%; +} + +.width-98 { + width: 98%; +} + +.width-99 { + width: 99%; +} + +.width-100 { + width: 100%; +} \ No newline at end of file diff --git a/test_dir/dnoo/dnooLogs/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.xml b/test_dir/dnoo/dnooLogs/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.xml new file mode 100644 index 0000000..6163e00 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooLogs/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.txt b/test_dir/dnoo/dnooLogs/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.txt new file mode 100644 index 0000000..37f0ba8 --- /dev/null +++ b/test_dir/dnoo/dnooLogs/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest +------------------------------------------------------------------------------- +Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.113 sec - in eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest diff --git a/test_dir/dnoo/dnooLogs/target/test-classes/eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.class b/test_dir/dnoo/dnooLogs/target/test-classes/eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.class new file mode 100644 index 0000000..aa825ae Binary files /dev/null and b/test_dir/dnoo/dnooLogs/target/test-classes/eu/stamp_project/examples/dnoo/dnooLogs/MyLoggerTest.class differ diff --git a/test_dir/dnoo/dnooMain/bar.txt b/test_dir/dnoo/dnooMain/bar.txt new file mode 100644 index 0000000..3a1e9dd --- /dev/null +++ b/test_dir/dnoo/dnooMain/bar.txt @@ -0,0 +1,3 @@ +1st line +a second line, longer than the first one +3rd line with something else: 2, 4, 8, 16 diff --git a/test_dir/dnoo/dnooMain/dnoo.log.1 b/test_dir/dnoo/dnooMain/dnoo.log.1 new file mode 100644 index 0000000..6063e18 --- /dev/null +++ b/test_dir/dnoo/dnooMain/dnoo.log.1 @@ -0,0 +1,12 @@ +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session2Test testSession2 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session2Test testSession2 +WARNING: checking log level: warning +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/dnoo.log.2 b/test_dir/dnoo/dnooMain/dnoo.log.2 new file mode 100644 index 0000000..6063e18 --- /dev/null +++ b/test_dir/dnoo/dnooMain/dnoo.log.2 @@ -0,0 +1,12 @@ +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session2Test testSession2 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session2Test testSession2 +WARNING: checking log level: warning +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/foo3.traces b/test_dir/dnoo/dnooMain/foo3.traces new file mode 100644 index 0000000..5761b1e --- /dev/null +++ b/test_dir/dnoo/dnooMain/foo3.traces @@ -0,0 +1,4 @@ +8 +-------- +-------- Hello World ! +-------- diff --git a/test_dir/dnoo/dnooMain/global1.traces b/test_dir/dnoo/dnooMain/global1.traces new file mode 100644 index 0000000..459938d --- /dev/null +++ b/test_dir/dnoo/dnooMain/global1.traces @@ -0,0 +1,4 @@ +11 +----------- +----------- Hello World ! +----------- diff --git a/test_dir/dnoo/dnooMain/global2.traces b/test_dir/dnoo/dnooMain/global2.traces new file mode 100644 index 0000000..5761b1e --- /dev/null +++ b/test_dir/dnoo/dnooMain/global2.traces @@ -0,0 +1,4 @@ +8 +-------- +-------- Hello World ! +-------- diff --git a/test_dir/dnoo/dnooMain/global_mixed1.traces b/test_dir/dnoo/dnooMain/global_mixed1.traces new file mode 100644 index 0000000..a4dacd1 --- /dev/null +++ b/test_dir/dnoo/dnooMain/global_mixed1.traces @@ -0,0 +1,4 @@ +40 +---------------------------------------- +---------------------------------------- Hello World ! +---------------------------------------- diff --git a/test_dir/dnoo/dnooMain/global_mixed2.txt b/test_dir/dnoo/dnooMain/global_mixed2.txt new file mode 100644 index 0000000..4e07ccf --- /dev/null +++ b/test_dir/dnoo/dnooMain/global_mixed2.txt @@ -0,0 +1,4 @@ +a first line, longer than the first one +2nd line with something else: 2, 4, 8, 16 +3rd line +the end diff --git a/test_dir/dnoo/dnooMain/hello_run3.traces b/test_dir/dnoo/dnooMain/hello_run3.traces new file mode 100644 index 0000000..48d2d39 --- /dev/null +++ b/test_dir/dnoo/dnooMain/hello_run3.traces @@ -0,0 +1,4 @@ +22 +---------------------- +---------------------- Hello World ! +---------------------- diff --git a/test_dir/dnoo/dnooMain/mixed1.traces b/test_dir/dnoo/dnooMain/mixed1.traces new file mode 100644 index 0000000..a4dacd1 --- /dev/null +++ b/test_dir/dnoo/dnooMain/mixed1.traces @@ -0,0 +1,4 @@ +40 +---------------------------------------- +---------------------------------------- Hello World ! +---------------------------------------- diff --git a/test_dir/dnoo/dnooMain/mixed2.txt b/test_dir/dnoo/dnooMain/mixed2.txt new file mode 100644 index 0000000..4e07ccf --- /dev/null +++ b/test_dir/dnoo/dnooMain/mixed2.txt @@ -0,0 +1,4 @@ +a first line, longer than the first one +2nd line with something else: 2, 4, 8, 16 +3rd line +the end diff --git a/test_dir/dnoo/dnooMain/my_storage.txt b/test_dir/dnoo/dnooMain/my_storage.txt new file mode 100644 index 0000000..bef630b --- /dev/null +++ b/test_dir/dnoo/dnooMain/my_storage.txt @@ -0,0 +1,4 @@ +1 +- +- Hello World ! +- diff --git a/test_dir/dnoo/dnooMain/pom.xml b/test_dir/dnoo/dnooMain/pom.xml new file mode 100644 index 0000000..ba31c73 --- /dev/null +++ b/test_dir/dnoo/dnooMain/pom.xml @@ -0,0 +1,41 @@ + + + 4.0.0 + + + eu.stamp-project + dnoo + 1.0.1 + + + dnooMain + + + + junit + junit + test + + + + ${project.parent.groupId} + dnooLogs + ${project.parent.version} + + + + ${project.parent.groupId} + dnooStorage + ${project.parent.version} + + + + ${project.parent.groupId} + dnooHello + ${project.parent.version} + + + + diff --git a/test_dir/dnoo/dnooMain/session1.log.1 b/test_dir/dnoo/dnooMain/session1.log.1 new file mode 100644 index 0000000..f6c9330 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.1 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.10 b/test_dir/dnoo/dnooMain/session1.log.10 new file mode 100644 index 0000000..6eafed5 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.10 @@ -0,0 +1,6 @@ +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooMain/session1.log.11 b/test_dir/dnoo/dnooMain/session1.log.11 new file mode 100644 index 0000000..3ae854f --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.11 @@ -0,0 +1,146 @@ +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = global2.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 8 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '--------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = -------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 8 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = -------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 11 - MyTracesName = global1.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 11 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-----------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ----------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 11 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ----------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +INFO: testing default logs level +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooMain/session1.log.12 b/test_dir/dnoo/dnooMain/session1.log.12 new file mode 100644 index 0000000..e69de29 diff --git a/test_dir/dnoo/dnooMain/session1.log.13 b/test_dir/dnoo/dnooMain/session1.log.13 new file mode 100644 index 0000000..3ae854f --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.13 @@ -0,0 +1,146 @@ +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = global2.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 8 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '--------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = -------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 8 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = -------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = -------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: ENTRY +Apr 23, 2018 7:37:17 PM MyStorage deleteFile +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 11 - MyTracesName = global1.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp HelloApp_int_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 11 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-----------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ----------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage saveData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage MyStorage_String +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 0 - aData = 11 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 1 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 1 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 2 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 2 - aData = ----------- Hello World ! +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 3 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: IN : DataSize = 3 - aData = ----------- +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage addData +FINEST: OUT: DataSize = 4 +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage readData +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: ENTRY +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooStorage.MyStorage isEqual +FINER: RETURN +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +INFO: testing default logs level +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooMain/session1.log.14 b/test_dir/dnoo/dnooMain/session1.log.14 new file mode 100644 index 0000000..c5aae94 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.14 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.15 b/test_dir/dnoo/dnooMain/session1.log.15 new file mode 100644 index 0000000..c5aae94 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.15 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.16 b/test_dir/dnoo/dnooMain/session1.log.16 new file mode 100644 index 0000000..c5aae94 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.16 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.2 b/test_dir/dnoo/dnooMain/session1.log.2 new file mode 100644 index 0000000..3ab3fad --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.2 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:21 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:21 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.3 b/test_dir/dnoo/dnooMain/session1.log.3 new file mode 100644 index 0000000..3ab3fad --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.3 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:21 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:21 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.4 b/test_dir/dnoo/dnooMain/session1.log.4 new file mode 100644 index 0000000..3ab3fad --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.4 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:21 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:21 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.5 b/test_dir/dnoo/dnooMain/session1.log.5 new file mode 100644 index 0000000..709c9c8 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.5 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.6 b/test_dir/dnoo/dnooMain/session1.log.6 new file mode 100644 index 0000000..709c9c8 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.6 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.7 b/test_dir/dnoo/dnooMain/session1.log.7 new file mode 100644 index 0000000..02127cb --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.7 @@ -0,0 +1,64 @@ +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:16 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = foo1.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo2.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 40 - MyTracesName = mixed1.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '----------------------------------------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 1 - MyTracesName = myHelloApp.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = foo3.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '--------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 40 - MyTracesName = global_mixed1.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '----------------------------------------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 22 - MyTracesName = hello_run3.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '----------------------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 8 - MyTracesName = global2.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '--------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp +INFO: MyPrintCount = 11 - MyTracesName = global1.traces +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooHello.HelloApp run +FINE: indent = '-----------' +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +INFO: testing default logs level +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooMain/session1.log.8 b/test_dir/dnoo/dnooMain/session1.log.8 new file mode 100644 index 0000000..54a878c --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.8 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.log.9 b/test_dir/dnoo/dnooMain/session1.log.9 new file mode 100644 index 0000000..54a878c --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.log.9 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:17 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session1.traces b/test_dir/dnoo/dnooMain/session1.traces new file mode 100644 index 0000000..459938d --- /dev/null +++ b/test_dir/dnoo/dnooMain/session1.traces @@ -0,0 +1,4 @@ +11 +----------- +----------- Hello World ! +----------- diff --git a/test_dir/dnoo/dnooMain/session2.log.1 b/test_dir/dnoo/dnooMain/session2.log.1 new file mode 100644 index 0000000..f6c9330 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session2.log.1 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session2.log.2 b/test_dir/dnoo/dnooMain/session2.log.2 new file mode 100644 index 0000000..f6c9330 --- /dev/null +++ b/test_dir/dnoo/dnooMain/session2.log.2 @@ -0,0 +1,4 @@ +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +SEVERE: checking log level: severe +Apr 23, 2018 7:37:25 PM eu.stamp_project.examples.dnoo.dnooMain.Session1Test testSession1 +WARNING: checking log level: warning diff --git a/test_dir/dnoo/dnooMain/session2.traces b/test_dir/dnoo/dnooMain/session2.traces new file mode 100644 index 0000000..2eba9ab --- /dev/null +++ b/test_dir/dnoo/dnooMain/session2.traces @@ -0,0 +1,3 @@ +2 +-- +-- Hello World ! diff --git a/test_dir/dnoo/dnooMain/src/main/java/eu/stamp_project/examples/dnoo/dnooMain/MyGod.java b/test_dir/dnoo/dnooMain/src/main/java/eu/stamp_project/examples/dnoo/dnooMain/MyGod.java new file mode 100644 index 0000000..899bc1c --- /dev/null +++ b/test_dir/dnoo/dnooMain/src/main/java/eu/stamp_project/examples/dnoo/dnooMain/MyGod.java @@ -0,0 +1,112 @@ +package eu.stamp_project.examples.dnoo.dnooMain; + +// ********************************************************************** +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +// ********************************************************************** +public class MyGod +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** methods + + // ********************************************************************** + public static void main(String[] args) + { + int indentCount = 1; + int argIndex = 0; + String indentArg = ""; + String fileName = ""; + String logLevel = "WARNING"; + boolean printOnStdout = true; + boolean shouldRun = true; + + while (argIndex < args.length) + { + if (args[argIndex].equals("-h")) + { + printHelp(); + shouldRun = false; + argIndex = args.length; + } + else if (args[argIndex].equals("-no_stdout")) + { + printOnStdout = false; + argIndex = argIndex + 1; + } + else if (args[argIndex].equals("-log")) + { + if (argIndex + 1 < args.length) + { + logLevel = args[argIndex + 1]; + } + else + { + System.err.println("Missing argument: -log , -h for help"); + System.exit(1); + } + argIndex = argIndex + 2; + } + else if (indentArg.length() == 0) + { + indentArg = args[argIndex]; + argIndex = argIndex + 1; + } + else if (fileName.length() == 0) + { + fileName = args[argIndex]; + argIndex = argIndex + 1; + } + else + { + System.err.println("Unknown argument: " + args[argIndex] + ", -h for help"); + System.exit(1); + } + } + + if (shouldRun) + { + if (indentArg.length() > 0) + { + try + { + indentCount = Integer.parseInt(indentArg); + } + catch (NumberFormatException e) + { + System.err.println("Argument " + indentArg + + " must be an integer, -h for help"); + System.exit(1); + } + } + + MyLogger.setLevel(logLevel); + + HelloApp myApp = new HelloApp(indentCount, fileName); + myApp.setShouldPrintOnStdout(printOnStdout); + myApp.run(); + } + } + + // ********************************************************************** + public static void printHelp() + { + System.out.println("DNOO"); + System.out.println("----"); + System.out.println("Print on stdout a 'Hello World !' message formatted according to"); + System.out.println(", and generate an output file"); + System.out.println(""); + System.out.println("args: [-h | [] [-no_stdout] [-log ]]"); + System.out.println(" -h: this help"); + System.out.println(" : number of '-' for message indentation, default is 1"); + System.out.println(" : output file name, default is my_storage.txt"); + System.out.println(" output file name contains and the stdout"); + System.out.println(" -no_stdout: if specified, do not print anything on stdout,"); + System.out.println(" generate only the output file"); + System.out.println(" -log : specify the level of information to log,"); + System.out.println(" is one of {OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL}, default is WARNING"); + System.out.println(" generate a log file, dnoo.log, in the current directory"); + } +} diff --git a/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.java b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.java new file mode 100644 index 0000000..f151e29 --- /dev/null +++ b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.java @@ -0,0 +1,62 @@ +package eu.stamp_project.examples.dnoo.dnooMain; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +public class GlobalAppTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testGlobalAppRun1() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 11; + String countString = Integer.toString(myCount); + String helloString = "----------- Hello World !"; + String myTracesName = "global1.traces"; + + MyLogger.clearLogs(); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } + + // ********************************************************************** + @Test + public void testGlobalAppRun2() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 8; + String countString = Integer.toString(myCount); + String helloString = "-------- Hello World !"; + String myTracesName = "global2.traces"; + + MyLogger.clearLogs(); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } +} diff --git a/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.java b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.java new file mode 100644 index 0000000..68589da --- /dev/null +++ b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.java @@ -0,0 +1,82 @@ +package eu.stamp_project.examples.dnoo.dnooMain; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; + +public class GlobalMixedTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testGlobalMixed1HelloAppRun() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 40; + String countString = Integer.toString(myCount); + String helloString = "---------------------------------------- Hello World !"; + String MyTracesName = "global_mixed1.traces"; + // String message; + + myApp = new HelloApp(myCount, MyTracesName); + myApp.run(); + + // message = "#### TracesName = " + myApp.getMyTracesName(); + // System.out.println(message); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + } + + @Test + public void testGlobalMixed2SaveReadData() throws Exception + { + MyStorage myFile = null; + MyStorage mySecondFile = null; + String myFileName = "global_mixed2.txt"; + File theFile = null; + ArrayList myData = new ArrayList(); + + MyStorage.deleteFile(myFileName); + + // files content + myData.add("a first line, longer than the first one"); + myData.add("2nd line with something else: 2, 4, 8, 16"); + myData.add("3rd line"); + myData.add("the end"); + + // write data in the first file + myFile = new MyStorage(myFileName); + for (int i = 0; i < myData.size(); i++) + { + myFile.addData(myData.get(i)); + } + assertEquals(myData.size(), myFile.getDataSize()); + assertEquals(true, myFile.dataAreEqual(myData)); + + myFile.saveData(); + theFile = new File(myFileName); + assertEquals(true, theFile.exists()); + + // read data in the 2nd file + mySecondFile = new MyStorage(myFileName); + assertEquals(true, theFile.exists()); + + mySecondFile.readData(); + assertEquals(myData.size(), mySecondFile.getDataSize()); + assertEquals(true, mySecondFile.dataAreEqual(myData)); + + // compare content + assertEquals(true, myFile.isEqual(mySecondFile)); + } +} diff --git a/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session1Test.java b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session1Test.java new file mode 100644 index 0000000..5ca97cb --- /dev/null +++ b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session1Test.java @@ -0,0 +1,57 @@ +package eu.stamp_project.examples.dnoo.dnooMain; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +public class Session1Test +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testSession1() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 11; + String countString = Integer.toString(myCount); + String helloString = "----------- Hello World !"; + String myTracesName = "session1.traces"; + MyStorage logsContent = null; + + MyLogger.clearLogs(); + MyLogger.LogFileName = "session1.log"; + MyLogger.getLogger().info("testing default logs level"); + assertEquals("WARNING", MyLogger.getLevel()); + MyLogger.getLogger().severe("checking log level: severe"); + MyLogger.getLogger().warning("checking log level: warning"); + MyLogger.getLogger().info("checking log level: info"); + MyLogger.getLogger().config("checking log level: config"); + MyLogger.getLogger().fine("checking log level: fine"); + MyLogger.getLogger().finer("checking log level: finer"); + MyLogger.getLogger().finest("checking log level: finest"); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + + // MyLogger.setLevel("OFF"); + // check logs file content + logsContent = new MyStorage(MyLogger.LogFileName); + logsContent.readData(); + assertEquals(4, logsContent.getDataSize()); + assertEquals("SEVERE: checking log level: severe", logsContent.getData(1)); + assertEquals("WARNING: checking log level: warning", logsContent.getData(3)); + } +} diff --git a/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session2Test.java b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session2Test.java new file mode 100644 index 0000000..a520f7d --- /dev/null +++ b/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session2Test.java @@ -0,0 +1,66 @@ +package eu.stamp_project.examples.dnoo.dnooMain; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; + +import eu.stamp_project.examples.dnoo.dnooHello.HelloApp; +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +public class Session2Test +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testSession2() throws Exception + { + HelloApp myApp = null; + File theFile = null; + MyStorage fileContent = null; + int myCount = 2; + String countString = Integer.toString(myCount); + String helloString = "-- Hello World !"; + String myTracesName = "session2.traces"; + MyStorage logsContent = null; + + MyLogger.clearLogs(); + MyLogger.LogFileName = "session2.log"; + MyLogger.setLevel("FINE"); + MyLogger.getLogger().info("testing logs level FINE"); + assertEquals(MyLogger.getLevel(), "FINE"); + + MyLogger.getLogger().severe("checking log level: severe"); + MyLogger.getLogger().warning("checking log level: warning"); + MyLogger.getLogger().info("checking log level: info"); + MyLogger.getLogger().config("checking log level: config"); + MyLogger.getLogger().fine("checking log level: fine"); + MyLogger.getLogger().finer("checking log level: finer"); + MyLogger.getLogger().finest("checking log level: finest"); + + myApp = new HelloApp(myCount, myTracesName); + myApp.run(); + + fileContent = new MyStorage(myApp.getMyTracesName()); + fileContent.readData(); + assertEquals(true, fileContent.isEqual(myApp.getMyTraces())); + assertEquals(true, countString.equals(fileContent.getData(0))); + assertEquals(true, helloString.equals(fileContent.getData(2))); + + MyLogger.setLevel("OFF"); + // check logs file content + logsContent = new MyStorage(MyLogger.LogFileName); + logsContent.readData(); + assertEquals(16, logsContent.getDataSize()); + assertEquals("INFO: testing logs level FINE", logsContent.getData(1)); + assertEquals("SEVERE: checking log level: severe", logsContent.getData(3)); + assertEquals("WARNING: checking log level: warning", logsContent.getData(5)); + assertEquals("INFO: checking log level: info", logsContent.getData(7)); + assertEquals("CONFIG: checking log level: config", logsContent.getData(9)); + assertEquals("FINE: checking log level: fine", logsContent.getData(11)); + assertEquals("INFO: MyPrintCount = 2 - MyTracesName = session2.traces", + logsContent.getData(13)); + assertEquals("FINE: indent = '--'", logsContent.getData(15)); + } +} diff --git a/test_dir/dnoo/dnooMain/target/classes/eu/stamp_project/examples/dnoo/dnooMain/MyGod.class b/test_dir/dnoo/dnooMain/target/classes/eu/stamp_project/examples/dnoo/dnooMain/MyGod.class new file mode 100644 index 0000000..d201c8f Binary files /dev/null and b/test_dir/dnoo/dnooMain/target/classes/eu/stamp_project/examples/dnoo/dnooMain/MyGod.class differ diff --git a/test_dir/dnoo/dnooMain/target/dnooMain-1.0.1.jar b/test_dir/dnoo/dnooMain/target/dnooMain-1.0.1.jar new file mode 100644 index 0000000..4297af3 Binary files /dev/null and b/test_dir/dnoo/dnooMain/target/dnooMain-1.0.1.jar differ diff --git a/test_dir/dnoo/dnooMain/target/maven-archiver/pom.properties b/test_dir/dnoo/dnooMain/target/maven-archiver/pom.properties new file mode 100644 index 0000000..2ce3715 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Apr 23 19:36:50 CEST 2018 +version=1.0.1 +groupId=eu.stamp-project +artifactId=dnooMain diff --git a/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..bab777c --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +eu/stamp_project/examples/dnoo/dnooMain/MyGod.class diff --git a/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..af0818d --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooMain/src/main/java/eu/stamp_project/examples/dnoo/dnooMain/MyGod.java diff --git a/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..979c1f8 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,4 @@ +eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.class +eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.class +eu/stamp_project/examples/dnoo/dnooMain/Session2Test.class +eu/stamp_project/examples/dnoo/dnooMain/Session1Test.class diff --git a/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..daa769a --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,4 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session1Test.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.java +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooMain/src/test/java/eu/stamp_project/examples/dnoo/dnooMain/Session2Test.java diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html new file mode 100644 index 0000000..ffcbe5c --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/HelloApp.java.html @@ -0,0 +1,3143 @@ + + + + + + + + +

HelloApp.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooHello;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage;
+ +5 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +6 + + + + + +
+ +7 + + + + + +
// **********************************************************************
+ +8 + + + + + +
public class HelloApp
+ +9 + + + + + +
{
+ +10 + + + + + +
   // **********************************************************************
+ +11 + + + + + +
   // public
+ +12 + + + + + +
   // **********************************************************************
+ +13 + + + + + +
   // ******** methods
+ +14 + + + + + +
+ +15 + + + + + +
   // **********************************************************************
+ +16 + + + + + +
   public HelloApp()
+ +17 + + + + + +
   {
+ +18 + + + + + +
      String methodName = "HelloApp";
+ +19 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +20 + + + + + +
+ +21 + + + + + +
      MyPrintCount = 1;
+ +22 + + + + + +
      MyTraces = null;
+ +23 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +24 + + + + + +
      ShouldPrintOnStdout = true;
+ +25 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +26 + + + + + +
+ +27 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +28 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +29 + + + + + +
+ +30 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // **********************************************************************
+ +34 + + + + + +
   public HelloApp(int printCount)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      String methodName = "HelloApp_int";
+ +37 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +38 + + + + + +
+ +39 + + + + + +
      MyPrintCount = printCount;
+ +40 + + + + + +
      MyTraces = null;
+ +41 + + + + + +
      MyTracesName = "myHelloApp.traces";
+ +42 + + + + + +
      ShouldPrintOnStdout = true;
+ +43 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +44 + + + + + +
+ +45 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +46 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public HelloApp(String tracesName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "HelloApp_String";
+ +55 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      MyPrintCount = 1;
+ +58 + + + + + +
      MyTraces = null;
+ +59 + + + + + +
      MyTracesName = tracesName;
+ +60 + + + + + +
      ShouldPrintOnStdout = true;
+ +61 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +62 + + + + + +
+ +63 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +64 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +65 + + + + + +
+ +66 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   public HelloApp(int printCount, String tracesName)
+ +71 + + + + + +
   {
+ +72 + + + + + +
      String methodName = "HelloApp_int_String";
+ +73 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +74 + + + + + +
+ +75 + + + + + +
      MyPrintCount = printCount;
+ +76 + + + + + +
      MyTraces = null;
+ +77 + + + + + +
      MyTracesName = tracesName;
+ +78 + + + + + +
      ShouldPrintOnStdout = true;
+ +79 + + +1 + +1. : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED
+ +
+
      MyStorage.deleteFile(MyTracesName);
+ +80 + + + + + +
+ +81 + + + + + +
      MyLogger.getLogger().info("MyPrintCount = " + Integer.toString(MyPrintCount)
+ +82 + + + + + +
         + " - MyTracesName = " + MyTracesName);
+ +83 + + + + + +
+ +84 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +85 + + + + + +
   }
+ +86 + + + + + +
+ +87 + + + + + +
   // **********************************************************************
+ +88 + + + + + +
   public void run()
+ +89 + + + + + +
   {
+ +90 + + + + + +
      String methodName = "run";
+ +91 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +92 + + + + + +
+ +93 + + + + + +
      String indent = "-";
+ +94 + + + + + +
      String countString = Integer.toString(MyPrintCount);
+ +95 + + + + + +
+ +96 + + +2 + +1. run : changed conditional boundary → KILLED
+2. run : negated conditional → KILLED
+ +
+
      if (MyTracesName.length() > 0)
+ +97 + + + + + +
      {
+ +98 + + + + + +
         MyTraces = new MyStorage(MyTracesName);
+ +99 + + + + + +
      }
+ +100 + + + + + +
      else
+ +101 + + + + + +
      {
+ +102 + + + + + +
         MyTraces = new MyStorage();
+ +103 + + + + + +
      }
+ +104 + + + + + +
+ +105 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(countString);
+ +106 + + + + + +
+ +107 + + +3 + +1. run : Changed increment from 1 to -1 → TIMED_OUT
+2. run : negated conditional → TIMED_OUT
+3. run : changed conditional boundary → KILLED
+ +
+
      for (int i = 1; i < MyPrintCount; i++)
+ +108 + + + + + +
      {
+ +109 + + + + + +
         indent = indent + "-";
+ +110 + + + + + +
      }
+ +111 + + + + + +
      MyLogger.getLogger().fine("indent = '" + indent + "'");
+ +112 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent);
+ +113 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED
+ +
+
      myPrint(indent + " Hello World !");
+ +114 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → SURVIVED
+ +
+
      myPrint(indent);
+ +115 + + + + + +
+ +116 + + +1 + +1. run : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::saveData → KILLED
+ +
+
      MyTraces.saveData();
+ +117 + + + + + +
+ +118 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +119 + + + + + +
   }
+ +120 + + + + + +
+ +121 + + + + + +
   // **********************************************************************
+ +122 + + + + + +
   public void computeMyUselessResult()
+ +123 + + + + + +
   {
+ +124 + + + + + +
      // PI = 3,141 592 653 589 793 - PI (10 chiffres exactes) ~ 104348 / 33215
+ +125 + + + + + +
      // PI = 3,1415926535 8979323846 2643383279 5028841971 6939937510 5820974944
+ +126 + + + + + +
      //      5923078164 0628620899 8628034825 3421170679
+ +127 + + + + + +
      // PHI = (1 + rootsquare(5)) / 2 = 1,618 033 988 7
+ +128 + + + + + +
      // PHI = 1,618 033 988 749 894 848 204 586 834 365 638 117 720 309 179 805
+ +129 + + + + + +
      //      762 862 135 448 622 705 260 462 189 024 497 072 072 041
+ +130 + + + + + +
   }
+ +131 + + + + + +
+ +132 + + + + + +
   // **********************************************************************
+ +133 + + + + + +
   // ******** attributes
+ +134 + + + + + +
+ +135 + + + + + +
   // **********************************************************************
+ +136 + + + + + +
   public int getMyPrintCount()
+ +137 + + + + + +
   {
+ +138 + + +1 + +1. getMyPrintCount : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyPrintCount);
+ +139 + + + + + +
   }
+ +140 + + + + + +
+ +141 + + + + + +
   // **********************************************************************
+ +142 + + + + + +
   public String getMyTracesName()
+ +143 + + + + + +
   {
+ +144 + + +1 + +1. getMyTracesName : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTracesName);
+ +145 + + + + + +
   }
+ +146 + + + + + +
+ +147 + + + + + +
   // **********************************************************************
+ +148 + + + + + +
   public boolean getShouldPrintOnStdout()
+ +149 + + + + + +
   {
+ +150 + + +1 + +1. getShouldPrintOnStdout : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(ShouldPrintOnStdout);
+ +151 + + + + + +
   }
+ +152 + + + + + +
+ +153 + + + + + +
   // **********
+ +154 + + + + + +
   public void setShouldPrintOnStdout(boolean value)
+ +155 + + + + + +
   {
+ +156 + + + + + +
      ShouldPrintOnStdout = value;
+ +157 + + + + + +
   }
+ +158 + + + + + +
+ +159 + + + + + +
   // **********************************************************************
+ +160 + + + + + +
   // ******** associations
+ +161 + + + + + +
+ +162 + + + + + +
   // **********************************************************************
+ +163 + + + + + +
   public int cardMyTraces()
+ +164 + + + + + +
   {
+ +165 + + + + + +
      int theCard = 0;
+ +166 + + + + + +
+ +167 + + +1 + +1. cardMyTraces : negated conditional → KILLED
+ +
+
      if (MyTraces != null)
+ +168 + + + + + +
      {
+ +169 + + + + + +
         theCard = 1;
+ +170 + + + + + +
      }
+ +171 + + + + + +
+ +172 + + +1 + +1. cardMyTraces : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(theCard);
+ +173 + + + + + +
   }
+ +174 + + + + + +
+ +175 + + + + + +
   // **********
+ +176 + + + + + +
   public MyStorage getMyTraces()
+ +177 + + + + + +
   {
+ +178 + + +1 + +1. getMyTraces : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyTraces);
+ +179 + + + + + +
   }
+ +180 + + + + + +
+ +181 + + + + + +
   // **********************************************************************
+ +182 + + + + + +
   // protected
+ +183 + + + + + +
   // **********************************************************************
+ +184 + + + + + +
   // ******** methods
+ +185 + + + + + +
+ +186 + + + + + +
   // **********************************************************************
+ +187 + + + + + +
   protected void myPrint(String message)
+ +188 + + + + + +
   {
+ +189 + + +1 + +1. myPrint : negated conditional → SURVIVED
+ +
+
      if (getShouldPrintOnStdout())
+ +190 + + + + + +
      {
+ +191 + + +1 + +1. myPrint : removed call to java/io/PrintStream::println → KILLED
+ +
+
         System.out.println(message);
+ +192 + + + + + +
      }
+ +193 + + +1 + +1. myPrint : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
      MyTraces.addData(message);
+ +194 + + + + + +
   }
+ +195 + + + + + +
+ +196 + + + + + +
   // **********************************************************************
+ +197 + + + + + +
   // private
+ +198 + + + + + +
   // **********************************************************************
+ +199 + + + + + +
   // ******** attributes
+ +200 + + + + + +
   private int MyPrintCount;
+ +201 + + + + + +
   private String MyTracesName;
+ +202 + + + + + +
   private MyStorage MyTraces;
+ +203 + + + + + +
   private boolean ShouldPrintOnStdout;
+ +204 + + + + + +
}

Mutations

25 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED

+
43 + + + +

1.1
Location :
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → KILLED

+
61 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED

+
79 + + + +

1.1
Location :
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::deleteFile → SURVIVED

+
96 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
changed conditional boundary → KILLED

2.2
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
107 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
changed conditional boundary → KILLED

2.2
Location : run
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3.3
Location : run
Killed by : none
negated conditional → TIMED_OUT

+
112 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED

+
113 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → KILLED

+
114 + + + +

1.1
Location : run
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::myPrint → SURVIVED

+
116 + + + +

1.1
Location : run
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::saveData → KILLED

+
138 + + + +

1.1
Location : getMyPrintCount
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
144 + + + +

1.1
Location : getMyTracesName
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTracesName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
150 + + + +

1.1
Location : getShouldPrintOnStdout
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
167 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
172 + + + +

1.1
Location : cardMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
178 + + + +

1.1
Location : getMyTraces
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooHello/HelloApp::getMyTraces to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
189 + + + +

1.1
Location : myPrint
Killed by : none
negated conditional → SURVIVED

+
191 + + + +

1.1
Location : myPrint
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
removed call to java/io/PrintStream::println → KILLED

+
193 + + + +

1.1
Location : myPrint
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.testGlobalAppRun1(eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.Session2Test.testSession2(eu.stamp_project.examples.dnoo.dnooMain.Session2Test) (11 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (19 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.testGlobalMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.testGlobalAppRun2(eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest) (5 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/index.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/index.html new file mode 100644 index 0000000..0b600fb --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooHello/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooHello

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
193%
71/76
83%
19/23
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
HelloApp.java
93%
71/76
83%
19/23
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html new file mode 100644 index 0000000..bbf3f20 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html @@ -0,0 +1,3386 @@ + + + + + + + + +

MyLogger.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooLogs;
+ +2 + + + + + +
+ +3 + + + + + +
import java.io.File;
+ +4 + + + + + +
import java.util.Locale;
+ +5 + + + + + +
// **********************************************************************
+ +6 + + + + + +
import java.util.logging.ConsoleHandler;
+ +7 + + + + + +
import java.util.logging.FileHandler;
+ +8 + + + + + +
import java.util.logging.Formatter;
+ +9 + + + + + +
import java.util.logging.Handler;
+ +10 + + + + + +
import java.util.logging.Level;
+ +11 + + + + + +
import java.util.logging.Logger;
+ +12 + + + + + +
import java.util.logging.SimpleFormatter;
+ +13 + + + + + +
+ +14 + + + + + +
// **********************************************************************
+ +15 + + + + + +
public class MyLogger
+ +16 + + + + + +
{
+ +17 + + + + + +
   // **********************************************************************
+ +18 + + + + + +
   // public
+ +19 + + + + + +
   // **********************************************************************
+ +20 + + + + + +
   // ******** attributes
+ +21 + + + + + +
   public static String LogFileName = "dnoo.log";
+ +22 + + + + + +
+ +23 + + + + + +
   // **********************************************************************
+ +24 + + + + + +
   // Level: String, public read/write class attribute
+ +25 + + + + + +
   // levels: "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER",
+ +26 + + + + + +
   //   "FINEST", "ALL"
+ +27 + + + + + +
   public static String getLevel()
+ +28 + + + + + +
   {
+ +29 + + + + + +
      Level currentLevel = getLogger().getLevel();
+ +30 + + +1 + +1. getLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(levelToString(currentLevel));
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // ***********
+ +34 + + + + + +
   public static void setLevel(String level)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      getLogger().setLevel(stringToLevel(level));
+ +37 + + + + + +
      Instance.StdLogHandler.setLevel(stringToLevel(level));
+ +38 + + + + + +
   }
+ +39 + + + + + +
+ +40 + + + + + +
   // **********************************************************************
+ +41 + + + + + +
   // ******** methods
+ +42 + + + + + +
   public static Logger getLogger()
+ +43 + + + + + +
   {
+ +44 + + +1 + +1. getLogger : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → KILLED
+ +
+
      initLogs();
+ +45 + + +1 + +1. getLogger : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(Instance.StandardLogger);
+ +46 + + + + + +
   }
+ +47 + + + + + +
+ +48 + + + + + +
   // **********************************************************************
+ +49 + + + + + +
   public static void clearLogs()
+ +50 + + + + + +
   {
+ +51 + + + + + +
      File theFile = null;
+ +52 + + + + + +
+ +53 + + +1 + +1. clearLogs : negated conditional → KILLED
+ +
+
      if (Instance != null)
+ +54 + + + + + +
      {
+ +55 + + + + + +
         Instance.StdLogHandler = null;
+ +56 + + + + + +
         Instance.StandardLogger = null;
+ +57 + + + + + +
         Instance = null;
+ +58 + + + + + +
      }
+ +59 + + + + + +
      // delete file if it already exists
+ +60 + + + + + +
      theFile = new File(LogFileName);
+ +61 + + +1 + +1. clearLogs : negated conditional → KILLED
+ +
+
      if (theFile.exists())
+ +62 + + + + + +
      {
+ +63 + + + + + +
         theFile.delete();
+ +64 + + + + + +
      }
+ +65 + + + + + +
+ +66 + + + + + +
      return;
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   // protected
+ +71 + + + + + +
   // **********************************************************************
+ +72 + + + + + +
   // ******** attributes
+ +73 + + + + + +
   protected static MyLogger Instance = null;
+ +74 + + + + + +
   protected Logger StandardLogger = null;
+ +75 + + + + + +
   protected Handler StdLogHandler = null;
+ +76 + + + + + +
   protected MyUselessClass MyValues = null;
+ +77 + + + + + +
+ +78 + + + + + +
   // **********************************************************************
+ +79 + + + + + +
   // ******** methods
+ +80 + + + + + +
   protected static Level stringToLevel(String level)
+ +81 + + + + + +
   {
+ +82 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +83 + + + + + +
      Level theLevel = Level.WARNING;
+ +84 + + + + + +
+ +85 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      if (level.equals("OFF"))
+ +86 + + + + + +
      {
+ +87 + + + + + +
         theLevel = Level.OFF;
+ +88 + + + + + +
      }
+ +89 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("SEVERE"))
+ +90 + + + + + +
      {
+ +91 + + + + + +
         theLevel = Level.SEVERE;
+ +92 + + + + + +
      }
+ +93 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("WARNING"))
+ +94 + + + + + +
      {
+ +95 + + + + + +
         theLevel = Level.WARNING;
+ +96 + + + + + +
      }
+ +97 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("INFO"))
+ +98 + + + + + +
      {
+ +99 + + + + + +
         theLevel = Level.INFO;
+ +100 + + + + + +
      }
+ +101 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("CONFIG"))
+ +102 + + + + + +
      {
+ +103 + + + + + +
         theLevel = Level.CONFIG;
+ +104 + + + + + +
      }
+ +105 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINE"))
+ +106 + + + + + +
      {
+ +107 + + + + + +
         theLevel = Level.FINE;
+ +108 + + + + + +
      }
+ +109 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINER"))
+ +110 + + + + + +
      {
+ +111 + + + + + +
         theLevel = Level.FINER;
+ +112 + + + + + +
      }
+ +113 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINEST"))
+ +114 + + + + + +
      {
+ +115 + + + + + +
         theLevel = Level.FINEST;
+ +116 + + + + + +
      }
+ +117 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("ALL"))
+ +118 + + + + + +
      {
+ +119 + + + + + +
         theLevel = Level.ALL;
+ +120 + + + + + +
      }
+ +121 + + + + + +
+ +122 + + +1 + +1. stringToLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +123 + + + + + +
   }
+ +124 + + + + + +
+ +125 + + + + + +
   // **********************************************************************
+ +126 + + + + + +
   protected static String levelToString(Level level)
+ +127 + + + + + +
   {
+ +128 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +129 + + + + + +
      String theLevel = "WARNING";
+ +130 + + + + + +
+ +131 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      if (level == Level.OFF)
+ +132 + + + + + +
      {
+ +133 + + + + + +
         theLevel = "OFF";
+ +134 + + + + + +
      }
+ +135 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.SEVERE)
+ +136 + + + + + +
      {
+ +137 + + + + + +
         theLevel = "SEVERE";
+ +138 + + + + + +
      }
+ +139 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.WARNING)
+ +140 + + + + + +
      {
+ +141 + + + + + +
         theLevel = "WARNING";
+ +142 + + + + + +
      }
+ +143 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.INFO)
+ +144 + + + + + +
      {
+ +145 + + + + + +
         theLevel = "INFO";
+ +146 + + + + + +
      }
+ +147 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.CONFIG)
+ +148 + + + + + +
      {
+ +149 + + + + + +
         theLevel = "CONFIG";
+ +150 + + + + + +
      }
+ +151 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINE)
+ +152 + + + + + +
      {
+ +153 + + + + + +
         theLevel = "FINE";
+ +154 + + + + + +
      }
+ +155 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINER)
+ +156 + + + + + +
      {
+ +157 + + + + + +
         theLevel = "FINER";
+ +158 + + + + + +
      }
+ +159 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINEST)
+ +160 + + + + + +
      {
+ +161 + + + + + +
         theLevel = "FINEST";
+ +162 + + + + + +
      }
+ +163 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.ALL)
+ +164 + + + + + +
      {
+ +165 + + + + + +
         theLevel = "ALL";
+ +166 + + + + + +
      }
+ +167 + + + + + +
+ +168 + + +1 + +1. levelToString : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +169 + + + + + +
   }
+ +170 + + + + + +
+ +171 + + + + + +
   // **********************************************************************
+ +172 + + + + + +
   protected static void initLogs()
+ +173 + + + + + +
   {
+ +174 + + + + + +
      Formatter logFormater = null;
+ +175 + + + + + +
      boolean fileCreated = false;
+ +176 + + +1 + +1. initLogs : removed call to java/util/Locale::setDefault → KILLED
+ +
+
      Locale.setDefault(Locale.ENGLISH);
+ +177 + + + + + +
+ +178 + + +1 + +1. initLogs : negated conditional → KILLED
+ +
+
      if (Instance == null)
+ +179 + + + + + +
      {
+ +180 + + + + + +
         Instance = new MyLogger();
+ +181 + + + + + +
         Instance.StandardLogger = Logger.getLogger(MyLogger.class.getName());
+ +182 + + + + + +
         Instance.StandardLogger.setUseParentHandlers(false);
+ +183 + + + + + +
         Instance.MyValues = new MyUselessClass();
+ +184 + + + + + +
   
+ +185 + + + + + +
         try
+ +186 + + + + + +
         {
+ +187 + + + + + +
            Instance.StdLogHandler = new FileHandler(LogFileName, false);
+ +188 + + + + + +
            Instance.StdLogHandler.setFormatter(new SimpleFormatter());
+ +189 + + + + + +
            fileCreated = true;
+ +190 + + + + + +
         }
+ +191 + + + + + +
         catch (Exception e)
+ +192 + + + + + +
         {
+ +193 + + + + + +
            Instance.StdLogHandler = new ConsoleHandler();
+ +194 + + + + + +
         }
+ +195 + + + + + +
         Instance.StandardLogger.addHandler(Instance.StdLogHandler);
+ +196 + + + + + +
   
+ +197 + + + + + +
         Instance.StandardLogger.setLevel(Level.WARNING);
+ +198 + + + + + +
         Instance.StdLogHandler.setLevel(Level.WARNING);
+ +199 + + + + + +
   
+ +200 + + +1 + +1. initLogs : negated conditional → KILLED
+ +
+
         if (fileCreated)
+ +201 + + + + + +
         {
+ +202 + + + + + +
            Instance.StandardLogger.info("Log file created");
+ +203 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → KILLED
+ +
+
            Instance.MyValues.setAll();
+ +204 + + + + + +
         }
+ +205 + + + + + +
         else
+ +206 + + + + + +
         {
+ +207 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE
+ +
+
            Instance.MyValues.clearAll();
+ +208 + + + + + +
            Instance.StandardLogger.warning
+ +209 + + + + + +
               ("Cannot create log file, redirecting logs to the console");
+ +210 + + + + + +
         }
+ +211 + + + + + +
      }
+ +212 + + + + + +
   }
+ +213 + + + + + +
}

Mutations

30 + + + +

1.1
Location : getLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
44 + + + +

1.1
Location : getLogger
Killed by : eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.testGlobalAppRun2(eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest)
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → KILLED

+
45 + + + +

1.1
Location : getLogger
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
53 + + + +

1.1
Location : clearLogs
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
negated conditional → KILLED

+
61 + + + +

1.1
Location : clearLogs
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
negated conditional → KILLED

+
85 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
89 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
93 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
97 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
101 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
109 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
113 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
122 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
131 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
135 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
139 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
143 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
147 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
151 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
155 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
159 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
163 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
168 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
176 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
removed call to java/util/Locale::setDefault → KILLED

+
178 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
200 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
negated conditional → KILLED

+
203 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → KILLED

+
207 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.testGlobalAppRun1(eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (0 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.Session2Test.testSession2(eu.stamp_project.examples.dnoo.dnooMain.Session2Test) (11 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.testGlobalMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (11 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (19 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.testGlobalMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.testGlobalAppRun2(eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest) (5 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/index.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/index.html new file mode 100644 index 0000000..57ea6e6 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooLogs/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooLogs

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
180%
69/86
97%
29/30
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyLogger.java
80%
69/86
97%
29/30
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooMain/MyGod.java.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooMain/MyGod.java.html new file mode 100644 index 0000000..306cf77 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooMain/MyGod.java.html @@ -0,0 +1,2083 @@ + + + + + + + + +

MyGod.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooMain;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import eu.stamp_project.examples.dnoo.dnooHello.HelloApp;
+ +5 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +6 + + + + + +
+ +7 + + + + + +
// **********************************************************************
+ +8 + + + + + +
public class MyGod
+ +9 + + + + + +
{
+ +10 + + + + + +
   // **********************************************************************
+ +11 + + + + + +
   // public
+ +12 + + + + + +
   // **********************************************************************
+ +13 + + + + + +
   // ******** methods
+ +14 + + + + + +
+ +15 + + + + + +
   // **********************************************************************
+ +16 + + + + + +
   public static void main(String[] args)
+ +17 + + + + + +
   {
+ +18 + + + + + +
      int indentCount = 1;
+ +19 + + + + + +
      int argIndex = 0;
+ +20 + + + + + +
      String indentArg = "";
+ +21 + + + + + +
      String fileName = "";
+ +22 + + + + + +
      String logLevel = "WARNING";
+ +23 + + + + + +
      boolean printOnStdout = true;
+ +24 + + + + + +
      boolean shouldRun = true;
+ +25 + + + + + +
+ +26 + + +2 + +1. main : changed conditional boundary → NO_COVERAGE
+2. main : negated conditional → NO_COVERAGE
+ +
+
      while (argIndex < args.length)
+ +27 + + + + + +
      {
+ +28 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         if (args[argIndex].equals("-h"))
+ +29 + + + + + +
         {
+ +30 + + +1 + +1. main : removed call to eu/stamp_project/examples/dnoo/dnooMain/MyGod::printHelp → NO_COVERAGE
+ +
+
            printHelp();
+ +31 + + + + + +
            shouldRun = false;
+ +32 + + + + + +
            argIndex = args.length;
+ +33 + + + + + +
         }
+ +34 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (args[argIndex].equals("-no_stdout"))
+ +35 + + + + + +
         {
+ +36 + + + + + +
            printOnStdout = false;
+ +37 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 1;
+ +38 + + + + + +
         }
+ +39 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (args[argIndex].equals("-log"))
+ +40 + + + + + +
         {
+ +41 + + +3 + +1. main : changed conditional boundary → NO_COVERAGE
+2. main : Replaced integer addition with subtraction → NO_COVERAGE
+3. main : negated conditional → NO_COVERAGE
+ +
+
            if (argIndex + 1 < args.length)
+ +42 + + + + + +
            {
+ +43 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
               logLevel = args[argIndex + 1];
+ +44 + + + + + +
            }
+ +45 + + + + + +
            else
+ +46 + + + + + +
            {
+ +47 + + +1 + +1. main : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
               System.err.println("Missing argument: -log <level>, -h for help");
+ +48 + + +1 + +1. main : removed call to java/lang/System::exit → NO_COVERAGE
+ +
+
               System.exit(1);
+ +49 + + + + + +
            }
+ +50 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 2;
+ +51 + + + + + +
         }
+ +52 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (indentArg.length() == 0)
+ +53 + + + + + +
         {
+ +54 + + + + + +
            indentArg = args[argIndex];
+ +55 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 1;
+ +56 + + + + + +
         }
+ +57 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
         else if (fileName.length() == 0)
+ +58 + + + + + +
         {
+ +59 + + + + + +
            fileName = args[argIndex];
+ +60 + + +1 + +1. main : Replaced integer addition with subtraction → NO_COVERAGE
+ +
+
            argIndex = argIndex + 1;
+ +61 + + + + + +
         }
+ +62 + + + + + +
         else
+ +63 + + + + + +
         {
+ +64 + + +1 + +1. main : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
            System.err.println("Unknown argument: " + args[argIndex] + ", -h for help");
+ +65 + + +1 + +1. main : removed call to java/lang/System::exit → NO_COVERAGE
+ +
+
            System.exit(1);
+ +66 + + + + + +
         }
+ +67 + + + + + +
      }
+ +68 + + + + + +
+ +69 + + +1 + +1. main : negated conditional → NO_COVERAGE
+ +
+
      if (shouldRun)
+ +70 + + + + + +
      {
+ +71 + + +2 + +1. main : changed conditional boundary → NO_COVERAGE
+2. main : negated conditional → NO_COVERAGE
+ +
+
         if (indentArg.length() > 0)
+ +72 + + + + + +
         {
+ +73 + + + + + +
            try
+ +74 + + + + + +
            {
+ +75 + + + + + +
               indentCount = Integer.parseInt(indentArg);
+ +76 + + + + + +
            }
+ +77 + + + + + +
            catch (NumberFormatException e)
+ +78 + + + + + +
            {
+ +79 + + +1 + +1. main : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
               System.err.println("Argument " + indentArg +
+ +80 + + + + + +
                  " must be an integer, -h for help");
+ +81 + + +1 + +1. main : removed call to java/lang/System::exit → NO_COVERAGE
+ +
+
               System.exit(1);
+ +82 + + + + + +
            }
+ +83 + + + + + +
         }
+ +84 + + + + + +
+ +85 + + +1 + +1. main : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::setLevel → NO_COVERAGE
+ +
+
         MyLogger.setLevel(logLevel);
+ +86 + + + + + +
+ +87 + + + + + +
         HelloApp myApp = new HelloApp(indentCount, fileName);
+ +88 + + +1 + +1. main : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::setShouldPrintOnStdout → NO_COVERAGE
+ +
+
         myApp.setShouldPrintOnStdout(printOnStdout);
+ +89 + + +1 + +1. main : removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::run → NO_COVERAGE
+ +
+
         myApp.run();
+ +90 + + + + + +
      }
+ +91 + + + + + +
   }
+ +92 + + + + + +
+ +93 + + + + + +
   // **********************************************************************
+ +94 + + + + + +
   public static void printHelp()
+ +95 + + + + + +
   {
+ +96 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("DNOO");
+ +97 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("----");
+ +98 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("Print on stdout a 'Hello World !' message formatted according to");
+ +99 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("<indentation_count>, and generate an output file");
+ +100 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("");
+ +101 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("args: [-h | <indentation_count> [<file_name>] [-no_stdout] [-log <level>]]");
+ +102 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   -h: this help");
+ +103 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   <indentation_count>: number of '-' for message indentation, default is 1");
+ +104 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   <file_name>: output file name, default is my_storage.txt");
+ +105 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      output file name contains <indentation_count> and the stdout");
+ +106 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   -no_stdout: if specified, do not print anything on stdout,");
+ +107 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      generate only the output file");
+ +108 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("   -log <level>: specify the level of information to log,");
+ +109 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      <level> is one of {OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL}, default is WARNING");
+ +110 + + +1 + +1. printHelp : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
      System.out.println("      generate a log file, dnoo.log, in the current directory");
+ +111 + + + + + +
   }
+ +112 + + + + + +
}

Mutations

26 + + + +

1.1
Location : main
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
28 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
30 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooMain/MyGod::printHelp → NO_COVERAGE

+
34 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
37 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
39 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
41 + + + +

1.1
Location : main
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

3.3
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
43 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
47 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
48 + + + +

1.1
Location : main
Killed by : none
removed call to java/lang/System::exit → NO_COVERAGE

+
50 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
52 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
55 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
57 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
60 + + + +

1.1
Location : main
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

+
64 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
65 + + + +

1.1
Location : main
Killed by : none
removed call to java/lang/System::exit → NO_COVERAGE

+
69 + + + +

1.1
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
71 + + + +

1.1
Location : main
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : main
Killed by : none
negated conditional → NO_COVERAGE

+
79 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
81 + + + +

1.1
Location : main
Killed by : none
removed call to java/lang/System::exit → NO_COVERAGE

+
85 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::setLevel → NO_COVERAGE

+
88 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::setShouldPrintOnStdout → NO_COVERAGE

+
89 + + + +

1.1
Location : main
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooHello/HelloApp::run → NO_COVERAGE

+
96 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
97 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
98 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
99 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
100 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
101 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
102 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
103 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
104 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
105 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
106 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
107 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
108 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
109 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
110 + + + +

1.1
Location : printHelp
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooMain/index.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooMain/index.html new file mode 100644 index 0000000..4964cd1 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooMain/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooMain

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
10%
0/58
0%
0/43
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyGod.java
0%
0/58
0%
0/43
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html new file mode 100644 index 0000000..e5b9b6f --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html @@ -0,0 +1,3544 @@ + + + + + + + + +

MyStorage.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooStorage;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import java.io.PrintStream;
+ +5 + + + + + +
import java.io.BufferedReader;
+ +6 + + + + + +
import java.io.FileReader;
+ +7 + + + + + +
import java.io.IOException;
+ +8 + + + + + +
import java.io.File;
+ +9 + + + + + +
import java.util.*;
+ +10 + + + + + +
+ +11 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +12 + + + + + +
+ +13 + + + + + +
// **********************************************************************
+ +14 + + + + + +
public class MyStorage
+ +15 + + + + + +
{
+ +16 + + + + + +
   // **********************************************************************
+ +17 + + + + + +
   // public
+ +18 + + + + + +
   // **********************************************************************
+ +19 + + + + + +
   // ******** methods
+ +20 + + + + + +
+ +21 + + + + + +
   // **********************************************************************
+ +22 + + + + + +
   public static void deleteFile(String fileName)
+ +23 + + + + + +
   {
+ +24 + + + + + +
      String methodName = "deleteFile";
+ +25 + + + + + +
      MyLogger.getLogger().entering("MyStorage", methodName);
+ +26 + + + + + +
+ +27 + + + + + +
      File theFile = null;
+ +28 + + + + + +
+ +29 + + + + + +
      // delete file if it already exists
+ +30 + + + + + +
      theFile = new File(fileName);
+ +31 + + +1 + +1. deleteFile : negated conditional → KILLED
+ +
+
      if (theFile.exists())
+ +32 + + + + + +
      {
+ +33 + + + + + +
         theFile.delete();
+ +34 + + + + + +
      }
+ +35 + + + + + +
+ +36 + + + + + +
      MyLogger.getLogger().exiting("MyStorage", methodName);
+ +37 + + + + + +
   }
+ +38 + + + + + +
+ +39 + + + + + +
   // **********************************************************************
+ +40 + + + + + +
   public MyStorage()
+ +41 + + + + + +
   {
+ +42 + + + + + +
      String methodName = "MyStorage";
+ +43 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +44 + + + + + +
+ +45 + + + + + +
      FileName = "my_storage.txt";
+ +46 + + + + + +
      MyData = new ArrayList<String>();
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public MyStorage(String fileName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "MyStorage_String";
+ +55 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      this.FileName = fileName;
+ +58 + + + + + +
      MyData = new ArrayList<String>();
+ +59 + + + + + +
+ +60 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +61 + + + + + +
   }
+ +62 + + + + + +
+ +63 + + + + + +
   // **********************************************************************
+ +64 + + + + + +
   public void readData()
+ +65 + + + + + +
   {
+ +66 + + + + + +
      String methodName = "readData";
+ +67 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +68 + + + + + +
+ +69 + + + + + +
      BufferedReader myBuffer = null;
+ +70 + + + + + +
      FileReader myFile = null;
+ +71 + + + + + +
      String currentLine;
+ +72 + + + + + +
+ +73 + + + + + +
      try
+ +74 + + + + + +
      {
+ +75 + + + + + +
         myFile = new FileReader(FileName);
+ +76 + + + + + +
         myBuffer = new BufferedReader(myFile);
+ +77 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         while ((currentLine = myBuffer.readLine()) != null)
+ +78 + + + + + +
         {
+ +79 + + +1 + +1. readData : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
            addData(currentLine);
+ +80 + + + + + +
         }
+ +81 + + + + + +
      }
+ +82 + + + + + +
      catch(IOException e)
+ +83 + + + + + +
      {
+ +84 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot read " + FileName);
+ +85 + + + + + +
      }
+ +86 + + + + + +
+ +87 + + + + + +
      try
+ +88 + + + + + +
      {
+ +89 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         if (myBuffer != null)
+ +90 + + + + + +
         {
+ +91 + + +1 + +1. readData : removed call to java/io/BufferedReader::close → KILLED
+ +
+
            myBuffer.close();
+ +92 + + + + + +
         }
+ +93 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         if (myFile != null)
+ +94 + + + + + +
         {
+ +95 + + +1 + +1. readData : removed call to java/io/FileReader::close → KILLED
+ +
+
            myFile.close();
+ +96 + + + + + +
         }
+ +97 + + + + + +
      }
+ +98 + + + + + +
      catch(IOException e)
+ +99 + + + + + +
      {
+ +100 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: closing " + FileName);
+ +101 + + + + + +
      }
+ +102 + + + + + +
+ +103 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +104 + + + + + +
   }
+ +105 + + + + + +
+ +106 + + + + + +
   // **********************************************************************
+ +107 + + + + + +
   public void saveData()
+ +108 + + + + + +
   {
+ +109 + + + + + +
      String methodName = "saveData";
+ +110 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +111 + + + + + +
+ +112 + + + + + +
      try
+ +113 + + + + + +
      {
+ +114 + + + + + +
         PrintStream writer = new PrintStream(new File(FileName));
+ +115 + + +2 + +1. saveData : changed conditional boundary → KILLED
+2. saveData : negated conditional → KILLED
+ +
+
         for (int i = 0; i < getDataSize(); i++)
+ +116 + + + + + +
         {
+ +117 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → KILLED
+ +
+
            writer.println(getData(i));
+ +118 + + + + + +
         }
+ +119 + + +1 + +1. saveData : removed call to java/io/PrintStream::close → SURVIVED
+ +
+
         writer.close();
+ +120 + + + + + +
      }
+ +121 + + + + + +
      catch(IOException e)
+ +122 + + + + + +
      {
+ +123 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot write into " + FileName);
+ +124 + + + + + +
      }
+ +125 + + + + + +
+ +126 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +127 + + + + + +
   }
+ +128 + + + + + +
+ +129 + + + + + +
   // **********************************************************************
+ +130 + + + + + +
   public boolean isEqual(MyStorage anotherStorage)
+ +131 + + + + + +
   {
+ +132 + + + + + +
      String methodName = "isEqual";
+ +133 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +134 + + + + + +
+ +135 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == anotherStorage.getDataSize());
+ +136 + + + + + +
+ +137 + + +4 + +1. isEqual : changed conditional boundary → KILLED
+2. isEqual : Changed increment from 1 to -1 → KILLED
+3. isEqual : negated conditional → KILLED
+4. isEqual : negated conditional → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +138 + + + + + +
      {
+ +139 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(anotherStorage.getData(i))))
+ +140 + + + + + +
         {
+ +141 + + + + + +
            areEqual = false;
+ +142 + + + + + +
         } 
+ +143 + + + + + +
      }
+ +144 + + + + + +
+ +145 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +146 + + +1 + +1. isEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +147 + + + + + +
   }
+ +148 + + + + + +
+ +149 + + + + + +
   // **********************************************************************
+ +150 + + + + + +
   public boolean dataAreEqual(ArrayList<String> otherData)
+ +151 + + + + + +
   {
+ +152 + + + + + +
      String methodName = "dataAreEqual";
+ +153 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +154 + + + + + +
+ +155 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == otherData.size());
+ +156 + + + + + +
+ +157 + + +4 + +1. dataAreEqual : negated conditional → SURVIVED
+2. dataAreEqual : negated conditional → SURVIVED
+3. dataAreEqual : changed conditional boundary → KILLED
+4. dataAreEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +158 + + + + + +
      {
+ +159 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(otherData.get(i))))
+ +160 + + + + + +
         {
+ +161 + + + + + +
            areEqual = false;
+ +162 + + + + + +
         } 
+ +163 + + + + + +
      }
+ +164 + + + + + +
+ +165 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +166 + + +1 + +1. dataAreEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +167 + + + + + +
   }
+ +168 + + + + + +
+ +169 + + + + + +
   // **********************************************************************
+ +170 + + + + + +
   // ******** attributes
+ +171 + + + + + +
+ +172 + + + + + +
   // **********************************************************************
+ +173 + + + + + +
   public String getFileName()
+ +174 + + + + + +
   {
+ +175 + + +1 + +1. getFileName : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(FileName);
+ +176 + + + + + +
   }
+ +177 + + + + + +
+ +178 + + + + + +
   // **********************************************************************
+ +179 + + + + + +
   public int getDataSize()
+ +180 + + + + + +
   {
+ +181 + + +1 + +1. getDataSize : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyData.size());
+ +182 + + + + + +
   }
+ +183 + + + + + +
+ +184 + + + + + +
   // **********************************************************************
+ +185 + + + + + +
   public String getData(int index)
+ +186 + + + + + +
   {
+ +187 + + +1 + +1. getData : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyData.get(index));
+ +188 + + + + + +
   }
+ +189 + + + + + +
+ +190 + + + + + +
   // **********************************************************************
+ +191 + + + + + +
   public void addData(String aData)
+ +192 + + + + + +
   {
+ +193 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize())
+ +194 + + + + + +
         + " - aData = " + aData);
+ +195 + + + + + +
+ +196 + + + + + +
      MyData.add(aData);
+ +197 + + + + + +
+ +198 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize()));
+ +199 + + + + + +
   }
+ +200 + + + + + +
+ +201 + + + + + +
   // **********************************************************************
+ +202 + + + + + +
   public void delData(String aData)
+ +203 + + + + + +
   {
+ +204 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize()));
+ +205 + + + + + +
+ +206 + + + + + +
      boolean found = false;
+ +207 + + + + + +
+ +208 + + +4 + +1. delData : changed conditional boundary → NO_COVERAGE
+2. delData : Changed increment from 1 to -1 → NO_COVERAGE
+3. delData : negated conditional → NO_COVERAGE
+4. delData : negated conditional → NO_COVERAGE
+ +
+
      for (int i = 0; i < getDataSize() && ! found; i++)
+ +209 + + + + + +
      {
+ +210 + + +1 + +1. delData : negated conditional → NO_COVERAGE
+ +
+
         if (getData(i).equals(aData))
+ +211 + + + + + +
         {
+ +212 + + + + + +
            MyData.remove(i);
+ +213 + + + + + +
            found = true;
+ +214 + + + + + +
         } 
+ +215 + + + + + +
      } 
+ +216 + + + + + +
+ +217 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize())
+ +218 + + + + + +
         + " - found = " + Boolean.toString(found));
+ +219 + + + + + +
   }
+ +220 + + + + + +
+ +221 + + + + + +
   // **********************************************************************
+ +222 + + + + + +
   // private
+ +223 + + + + + +
   // **********************************************************************
+ +224 + + + + + +
   // ******** attributes
+ +225 + + + + + +
   private String FileName;
+ +226 + + + + + +
   private ArrayList<String> MyData;
+ +227 + + + + + +
}

Mutations

31 + + + +

1.1
Location : deleteFile
Killed by : eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest)
negated conditional → KILLED

+
77 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
79 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
84 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
89 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
negated conditional → KILLED

+
91 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
removed call to java/io/BufferedReader::close → KILLED

+
93 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
negated conditional → KILLED

+
95 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
removed call to java/io/FileReader::close → KILLED

+
100 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
115 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to java/io/PrintStream::println → KILLED

+
119 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::close → SURVIVED

+
123 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
135 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
137 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
negated conditional → KILLED

4.4
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test)
negated conditional → KILLED

+
139 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
146 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
155 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
157 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

+
159 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
166 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
175 + + + +

1.1
Location : getFileName
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
181 + + + +

1.1
Location : getDataSize
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
187 + + + +

1.1
Location : getData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
208 + + + +

1.1
Location : delData
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : delData
Killed by : none
Changed increment from 1 to -1 → NO_COVERAGE

3.3
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
210 + + + +

1.1
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.testGlobalAppRun1(eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (0 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppIntString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun3(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (3 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun1(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppInt(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.Session2Test.testSession2(eu.stamp_project.examples.dnoo.dnooMain.Session2Test) (11 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.testGlobalMixed2SaveReadData(eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.Session1Test.testSession1(eu.stamp_project.examples.dnoo.dnooMain.Session1Test) (6 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppDefault(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (19 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.MixedTest.testMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooHello.MixedTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.testGlobalMixed1HelloAppRun(eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppString(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (1 ms)
  • eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.testGlobalAppRun2(eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest) (5 ms)
  • eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest.testHelloAppRun2(eu.stamp_project.examples.dnoo.dnooHello.HelloAppTest) (2 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/index.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/index.html new file mode 100644 index 0000000..ade56e4 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/eu.stamp_project.examples.dnoo.dnooStorage/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooStorage

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
180%
68/85
69%
25/36
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyStorage.java
80%
68/85
69%
25/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/index.html b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/index.html new file mode 100644 index 0000000..99fb0e7 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/index.html @@ -0,0 +1,80 @@ + + + + + + + +

Pit Test Coverage Report

+ +

Project Summary

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
468%
208/305
55%
73/132
+ + +

Breakdown by Package

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameNumber of ClassesLine CoverageMutation Coverage
eu.stamp_project.examples.dnoo.dnooHello1
93%
71/76
83%
19/23
eu.stamp_project.examples.dnoo.dnooLogs1
80%
69/86
97%
29/30
eu.stamp_project.examples.dnoo.dnooMain1
0%
0/58
0%
0/43
eu.stamp_project.examples.dnoo.dnooStorage1
80%
68/85
69%
25/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/style.css b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/style.css new file mode 100644 index 0000000..cd65bd3 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/pit-reports/201804231937/style.css @@ -0,0 +1,563 @@ +html, body, div, span, p, blockquote, pre { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body{ + line-height: 1; + color: black; + background: white; + margin-left: 20px; +} + +.src { + border: 1px solid #dddddd; + padding-top: 10px; + padding-right: 5px; + padding-left: 5px; + font-family: Consolas, Courier, monospace; +} + +.covered { + background-color: #ddffdd; +} + +.uncovered { + background-color: #ffdddd; +} + +.killed, .KILLED { + background-color: #aaffaa; +} + +.survived, .SURVIVED { + background-color: #ffaaaa; +} + +.uncertain { + background-color: #dde7ef; +} + +.run_error { + background-color: #dde7ef; +} + +.na { + background-color: #eeeeee; +} + +.timed_out { + background-color: #dde7ef; +} + +.non_viable { + background-color: #aaffaa; +} + +.memory_error { + background-color: #dde7ef; +} + +.not_started { + background-color: #dde7ef; color : red +} + +.no_coverage { + background-color: #ffaaaa; +} + +.tests { + width: 50%; + float: left; +} + +.mutees { + float: right; + width: 50%; +} + +.unit { + padding-top: 20px; + clear: both; +} + +.coverage_bar { + display: inline-block; + height: 1.1em; + width: 130px; + background: #FAA; + margin: 0 5px; + vertical-align: middle; + border: 1px solid #AAA; + position: relative; +} + +.coverage_complete { + display: inline-block; + height: 100%; + background: #DFD; + float: left; +} + +.coverage_legend { + position: absolute; + height: 100%; + width: 100%; + left: 0; + top: 0; + text-align: center; +} + +.line, .mut { + vertical-align: middle; +} + +.coverage_percentage { + display: inline-block; + width: 3em; + text-align: right; +} + +.pop { + outline:none; +} + +.pop strong { + line-height: 30px; +} + +.pop { + text-decoration: none; +} + +.pop span { + z-index: 10; + display: none; + padding: 14px 20px; + margin-top: -30px; + margin-left: 28px; + width: 800px; + line-height: 16px; + word-wrap: break-word; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -moz-box-shadow: 5px 5px 8px #CCC; + -webkit-box-shadow: 5px 5px 8px #CCC; + box-shadow: 5px 5px 8px #CCC; +} + +.pop:hover span { + display: inline; + position: absolute; + color: #111; + border: 1px solid #DCA; + background: #fffAF0; +} + +.width-1 { + width: 1%; +} + +.width-2 { + width: 2%; +} + +.width-3 { + width: 3%; +} + +.width-4 { + width: 4%; +} + +.width-5 { + width: 5%; +} + +.width-6 { + width: 6%; +} + +.width-7 { + width: 7%; +} + +.width-8 { + width: 8%; +} + +.width-9 { + width: 9%; +} + +.width-10 { + width: 10%; +} + +.width-11 { + width: 11%; +} + +.width-12 { + width: 12%; +} + +.width-13 { + width: 13%; +} + +.width-14 { + width: 14%; +} + +.width-15 { + width: 15%; +} + +.width-16 { + width: 16%; +} + +.width-17 { + width: 17%; +} + +.width-18 { + width: 18%; +} + +.width-19 { + width: 19%; +} + +.width-20 { + width: 20%; +} + +.width-21 { + width: 21%; +} + +.width-22 { + width: 22%; +} + +.width-23 { + width: 23%; +} + +.width-24 { + width: 24%; +} + +.width-25 { + width: 25%; +} + +.width-26 { + width: 26%; +} + +.width-27 { + width: 27%; +} + +.width-28 { + width: 28%; +} + +.width-29 { + width: 29%; +} + +.width-30 { + width: 30%; +} + +.width-31 { + width: 31%; +} + +.width-32 { + width: 32%; +} + +.width-33 { + width: 33%; +} + +.width-34 { + width: 34%; +} + +.width-35 { + width: 35%; +} + +.width-36 { + width: 36%; +} + +.width-37 { + width: 37%; +} + +.width-38 { + width: 38%; +} + +.width-39 { + width: 39%; +} + +.width-40 { + width: 40%; +} + +.width-41 { + width: 41%; +} + +.width-42 { + width: 42%; +} + +.width-43 { + width: 43%; +} + +.width-44 { + width: 44%; +} + +.width-45 { + width: 45%; +} + +.width-46 { + width: 46%; +} + +.width-47 { + width: 47%; +} + +.width-48 { + width: 48%; +} + +.width-49 { + width: 49%; +} + +.width-50 { + width: 50%; +} + +.width-51 { + width: 51%; +} + +.width-52 { + width: 52%; +} + +.width-53 { + width: 53%; +} + +.width-54 { + width: 54%; +} + +.width-55 { + width: 55%; +} + +.width-56 { + width: 56%; +} + +.width-57 { + width: 57%; +} + +.width-58 { + width: 58%; +} + +.width-59 { + width: 59%; +} + +.width-60 { + width: 60%; +} + +.width-61 { + width: 61%; +} + +.width-62 { + width: 62%; +} + +.width-63 { + width: 63%; +} + +.width-64 { + width: 64%; +} + +.width-65 { + width: 65%; +} + +.width-66 { + width: 66%; +} + +.width-67 { + width: 67%; +} + +.width-68 { + width: 68%; +} + +.width-69 { + width: 69%; +} + +.width-70 { + width: 70%; +} + +.width-71 { + width: 71%; +} + +.width-72 { + width: 72%; +} + +.width-73 { + width: 73%; +} + +.width-74 { + width: 74%; +} + +.width-75 { + width: 75%; +} + +.width-76 { + width: 76%; +} + +.width-77 { + width: 77%; +} + +.width-78 { + width: 78%; +} + +.width-79 { + width: 79%; +} + +.width-80 { + width: 80%; +} + +.width-81 { + width: 81%; +} + +.width-82 { + width: 82%; +} + +.width-83 { + width: 83%; +} + +.width-84 { + width: 84%; +} + +.width-85 { + width: 85%; +} + +.width-86 { + width: 86%; +} + +.width-87 { + width: 87%; +} + +.width-88 { + width: 88%; +} + +.width-89 { + width: 89%; +} + +.width-90 { + width: 90%; +} + +.width-91 { + width: 91%; +} + +.width-92 { + width: 92%; +} + +.width-93 { + width: 93%; +} + +.width-94 { + width: 94%; +} + +.width-95 { + width: 95%; +} + +.width-96 { + width: 96%; +} + +.width-97 { + width: 97%; +} + +.width-98 { + width: 98%; +} + +.width-99 { + width: 99%; +} + +.width-100 { + width: 100%; +} \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.xml b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.xml new file mode 100644 index 0000000..2d75553 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.xml b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.xml new file mode 100644 index 0000000..74211df --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.Session1Test.xml b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.Session1Test.xml new file mode 100644 index 0000000..5a17054 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.Session1Test.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.Session2Test.xml b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.Session2Test.xml new file mode 100644 index 0000000..f2fad06 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooMain.Session2Test.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.txt b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.txt new file mode 100644 index 0000000..afdfd6f --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in eu.stamp_project.examples.dnoo.dnooMain.GlobalAppTest diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.txt b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.txt new file mode 100644 index 0000000..d49e663 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in eu.stamp_project.examples.dnoo.dnooMain.GlobalMixedTest diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.Session1Test.txt b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.Session1Test.txt new file mode 100644 index 0000000..2289143 --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.Session1Test.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooMain.Session1Test +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec - in eu.stamp_project.examples.dnoo.dnooMain.Session1Test diff --git a/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.Session2Test.txt b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.Session2Test.txt new file mode 100644 index 0000000..abc3cfc --- /dev/null +++ b/test_dir/dnoo/dnooMain/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooMain.Session2Test.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooMain.Session2Test +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in eu.stamp_project.examples.dnoo.dnooMain.Session2Test diff --git a/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.class b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.class new file mode 100644 index 0000000..5315249 Binary files /dev/null and b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/GlobalAppTest.class differ diff --git a/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.class b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.class new file mode 100644 index 0000000..be9cba1 Binary files /dev/null and b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/GlobalMixedTest.class differ diff --git a/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/Session1Test.class b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/Session1Test.class new file mode 100644 index 0000000..79ac418 Binary files /dev/null and b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/Session1Test.class differ diff --git a/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/Session2Test.class b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/Session2Test.class new file mode 100644 index 0000000..458d4ea Binary files /dev/null and b/test_dir/dnoo/dnooMain/target/test-classes/eu/stamp_project/examples/dnoo/dnooMain/Session2Test.class differ diff --git a/test_dir/dnoo/dnooStorage/bar.txt b/test_dir/dnoo/dnooStorage/bar.txt new file mode 100644 index 0000000..3a1e9dd --- /dev/null +++ b/test_dir/dnoo/dnooStorage/bar.txt @@ -0,0 +1,3 @@ +1st line +a second line, longer than the first one +3rd line with something else: 2, 4, 8, 16 diff --git a/test_dir/dnoo/dnooStorage/dnoo.log b/test_dir/dnoo/dnooStorage/dnoo.log new file mode 100644 index 0000000..9c4cc1a --- /dev/null +++ b/test_dir/dnoo/dnooStorage/dnoo.log @@ -0,0 +1,38 @@ +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLogger initLogs +WARNING: Cannot create log file, redirecting logs to the console +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel1 +INFO: testMyLoggerSetLevel1: FINE +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooStorage/dnoo.log.1 b/test_dir/dnoo/dnooStorage/dnoo.log.1 new file mode 100644 index 0000000..58a5aa1 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/dnoo.log.1 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooStorage/dnoo.log.2 b/test_dir/dnoo/dnooStorage/dnoo.log.2 new file mode 100644 index 0000000..e69de29 diff --git a/test_dir/dnoo/dnooStorage/dnoo.log.3 b/test_dir/dnoo/dnooStorage/dnoo.log.3 new file mode 100644 index 0000000..58a5aa1 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/dnoo.log.3 @@ -0,0 +1,8 @@ +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL +Apr 23, 2018 7:36:56 PM eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest testMyLoggerSetLevel2 +INFO: testMyLoggerSetLevel2: ALL diff --git a/test_dir/dnoo/dnooStorage/pom.xml b/test_dir/dnoo/dnooStorage/pom.xml new file mode 100644 index 0000000..40575a5 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + + eu.stamp-project + dnoo + 1.0.1 + + + dnooStorage + + + + junit + junit + test + + + + ${project.parent.groupId} + dnooLogs + ${project.parent.version} + + + + diff --git a/test_dir/dnoo/dnooStorage/src/main/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.java b/test_dir/dnoo/dnooStorage/src/main/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.java new file mode 100644 index 0000000..551bee9 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/src/main/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.java @@ -0,0 +1,227 @@ +package eu.stamp_project.examples.dnoo.dnooStorage; + +// ********************************************************************** +import java.io.PrintStream; +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.IOException; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger; + +// ********************************************************************** +public class MyStorage +{ + // ********************************************************************** + // public + // ********************************************************************** + // ******** methods + + // ********************************************************************** + public static void deleteFile(String fileName) + { + String methodName = "deleteFile"; + MyLogger.getLogger().entering("MyStorage", methodName); + + File theFile = null; + + // delete file if it already exists + theFile = new File(fileName); + if (theFile.exists()) + { + theFile.delete(); + } + + MyLogger.getLogger().exiting("MyStorage", methodName); + } + + // ********************************************************************** + public MyStorage() + { + String methodName = "MyStorage"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + FileName = "my_storage.txt"; + MyData = new ArrayList(); + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public MyStorage(String fileName) + { + String methodName = "MyStorage_String"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + this.FileName = fileName; + MyData = new ArrayList(); + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void readData() + { + String methodName = "readData"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + BufferedReader myBuffer = null; + FileReader myFile = null; + String currentLine; + + try + { + myFile = new FileReader(FileName); + myBuffer = new BufferedReader(myFile); + while ((currentLine = myBuffer.readLine()) != null) + { + addData(currentLine); + } + } + catch(IOException e) + { + System.out.println("Error: cannot read " + FileName); + } + + try + { + if (myBuffer != null) + { + myBuffer.close(); + } + if (myFile != null) + { + myFile.close(); + } + } + catch(IOException e) + { + System.out.println("Error: closing " + FileName); + } + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public void saveData() + { + String methodName = "saveData"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + try + { + PrintStream writer = new PrintStream(new File(FileName)); + for (int i = 0; i < getDataSize(); i++) + { + writer.println(getData(i)); + } + writer.close(); + } + catch(IOException e) + { + System.out.println("Error: cannot write into " + FileName); + } + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + } + + // ********************************************************************** + public boolean isEqual(MyStorage anotherStorage) + { + String methodName = "isEqual"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + boolean areEqual = (getDataSize() == anotherStorage.getDataSize()); + + for (int i = 0; i < getDataSize() && areEqual; i++) + { + if (! (getData(i).equals(anotherStorage.getData(i)))) + { + areEqual = false; + } + } + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + return(areEqual); + } + + // ********************************************************************** + public boolean dataAreEqual(ArrayList otherData) + { + String methodName = "dataAreEqual"; + MyLogger.getLogger().entering(getClass().getName(), methodName); + + boolean areEqual = (getDataSize() == otherData.size()); + + for (int i = 0; i < getDataSize() && areEqual; i++) + { + if (! (getData(i).equals(otherData.get(i)))) + { + areEqual = false; + } + } + + MyLogger.getLogger().exiting(getClass().getName(), methodName); + return(areEqual); + } + + // ********************************************************************** + // ******** attributes + + // ********************************************************************** + public String getFileName() + { + return(FileName); + } + + // ********************************************************************** + public int getDataSize() + { + return(MyData.size()); + } + + // ********************************************************************** + public String getData(int index) + { + return(MyData.get(index)); + } + + // ********************************************************************** + public void addData(String aData) + { + MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize()) + + " - aData = " + aData); + + MyData.add(aData); + + MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize())); + } + + // ********************************************************************** + public void delData(String aData) + { + MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize())); + + boolean found = false; + + for (int i = 0; i < getDataSize() && ! found; i++) + { + if (getData(i).equals(aData)) + { + MyData.remove(i); + found = true; + } + } + + MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize()) + + " - found = " + Boolean.toString(found)); + } + + // ********************************************************************** + // private + // ********************************************************************** + // ******** attributes + private String FileName; + private ArrayList MyData; +} diff --git a/test_dir/dnoo/dnooStorage/src/test/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.java b/test_dir/dnoo/dnooStorage/src/test/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.java new file mode 100644 index 0000000..e344f55 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/src/test/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.java @@ -0,0 +1,118 @@ +package eu.stamp_project.examples.dnoo.dnooStorage; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import java.io.File; +import java.util.*; + +import eu.stamp_project.examples.dnoo.dnooStorage.MyStorage; + +public class MyStorageTest +{ + // ********************************************************************** + // public + // ********************************************************************** + @Test + public void testMyStorageDefault() throws Exception + { + MyStorage myFile = null; + String myFileName = "my_storage.txt"; + File theFile = null; + + MyStorage.deleteFile(myFileName); + + myFile = new MyStorage(); + assertEquals(myFileName, myFile.getFileName()); + assertEquals(0, myFile.getDataSize()); + + theFile = new File(myFileName); + theFile = new File(myFileName); + assertEquals(false, theFile.exists()); + } + + @Test + public void testMyStorageString() throws Exception + { + MyStorage myFile = null; + String myFileName = "foofoo.txt"; + File theFile = null; + + MyStorage.deleteFile(myFileName); + + myFile = new MyStorage(myFileName); + assertEquals(myFileName, myFile.getFileName()); + assertEquals(0, myFile.getDataSize()); + + theFile = new File(myFileName); + assertEquals(false, theFile.exists()); + } + + @Test + public void testAddData() throws Exception + { + MyStorage myFile = null; + String myFileName = "foo.txt"; + ArrayList myData = new ArrayList(); + + // file content + // 1st line + // a second line, longer than the first one + // 3rd line with something else: 2, 4, 8, 16 + myData.add("1st line"); + myData.add("a second line, longer than the first one"); + myData.add("3rd line with something else: 2, 4, 8, 16"); + + myFile = new MyStorage(myFileName); + for (int i = 0; i < myData.size(); i++) + { + myFile.addData(myData.get(i)); + } + + assertEquals(myData.size(), myFile.getDataSize()); + assertEquals(true, myFile.dataAreEqual(myData)); + } + + @Test + public void testSaveReadData() throws Exception + { + MyStorage myFile = null; + MyStorage mySecondFile = null; + String myFileName = "bar.txt"; + File theFile = null; + ArrayList myData = new ArrayList(); + + MyStorage.deleteFile(myFileName); + + // file content + // 1st line + // a second line, longer than the first one + // 3rd line with something else: 2, 4, 8, 16 + myData.add("1st line"); + myData.add("a second line, longer than the first one"); + myData.add("3rd line with something else: 2, 4, 8, 16"); + + // write data in the first file + myFile = new MyStorage(myFileName); + for (int i = 0; i < myData.size(); i++) + { + myFile.addData(myData.get(i)); + } + assertEquals(myData.size(), myFile.getDataSize()); + assertEquals(true, myFile.dataAreEqual(myData)); + + myFile.saveData(); + theFile = new File(myFileName); + assertEquals(true, theFile.exists()); + + // read data in the 2nd file + mySecondFile = new MyStorage(myFileName); + assertEquals(true, theFile.exists()); + + mySecondFile.readData(); + assertEquals(myData.size(), mySecondFile.getDataSize()); + assertEquals(true, mySecondFile.dataAreEqual(myData)); + + // compare content + assertEquals(true, myFile.isEqual(mySecondFile)); + } +} diff --git a/test_dir/dnoo/dnooStorage/target/classes/eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.class b/test_dir/dnoo/dnooStorage/target/classes/eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.class new file mode 100644 index 0000000..86031b6 Binary files /dev/null and b/test_dir/dnoo/dnooStorage/target/classes/eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.class differ diff --git a/test_dir/dnoo/dnooStorage/target/dnooStorage-1.0.1.jar b/test_dir/dnoo/dnooStorage/target/dnooStorage-1.0.1.jar new file mode 100644 index 0000000..807909d Binary files /dev/null and b/test_dir/dnoo/dnooStorage/target/dnooStorage-1.0.1.jar differ diff --git a/test_dir/dnoo/dnooStorage/target/maven-archiver/pom.properties b/test_dir/dnoo/dnooStorage/target/maven-archiver/pom.properties new file mode 100644 index 0000000..bd3638b --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Apr 23 19:36:48 CEST 2018 +version=1.0.1 +groupId=eu.stamp-project +artifactId=dnooStorage diff --git a/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..948c217 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.class diff --git a/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..0c59bcf --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooStorage/src/main/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorage.java diff --git a/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..b2d0303 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.class diff --git a/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..835aef0 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooStorage/src/test/java/eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.java diff --git a/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html new file mode 100644 index 0000000..2aea1f3 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/MyLogger.java.html @@ -0,0 +1,3386 @@ + + + + + + + + +

MyLogger.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooLogs;
+ +2 + + + + + +
+ +3 + + + + + +
import java.io.File;
+ +4 + + + + + +
import java.util.Locale;
+ +5 + + + + + +
// **********************************************************************
+ +6 + + + + + +
import java.util.logging.ConsoleHandler;
+ +7 + + + + + +
import java.util.logging.FileHandler;
+ +8 + + + + + +
import java.util.logging.Formatter;
+ +9 + + + + + +
import java.util.logging.Handler;
+ +10 + + + + + +
import java.util.logging.Level;
+ +11 + + + + + +
import java.util.logging.Logger;
+ +12 + + + + + +
import java.util.logging.SimpleFormatter;
+ +13 + + + + + +
+ +14 + + + + + +
// **********************************************************************
+ +15 + + + + + +
public class MyLogger
+ +16 + + + + + +
{
+ +17 + + + + + +
   // **********************************************************************
+ +18 + + + + + +
   // public
+ +19 + + + + + +
   // **********************************************************************
+ +20 + + + + + +
   // ******** attributes
+ +21 + + + + + +
   public static String LogFileName = "dnoo.log";
+ +22 + + + + + +
+ +23 + + + + + +
   // **********************************************************************
+ +24 + + + + + +
   // Level: String, public read/write class attribute
+ +25 + + + + + +
   // levels: "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER",
+ +26 + + + + + +
   //   "FINEST", "ALL"
+ +27 + + + + + +
   public static String getLevel()
+ +28 + + + + + +
   {
+ +29 + + + + + +
      Level currentLevel = getLogger().getLevel();
+ +30 + + +1 + +1. getLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(levelToString(currentLevel));
+ +31 + + + + + +
   }
+ +32 + + + + + +
+ +33 + + + + + +
   // ***********
+ +34 + + + + + +
   public static void setLevel(String level)
+ +35 + + + + + +
   {
+ +36 + + + + + +
      getLogger().setLevel(stringToLevel(level));
+ +37 + + + + + +
      Instance.StdLogHandler.setLevel(stringToLevel(level));
+ +38 + + + + + +
   }
+ +39 + + + + + +
+ +40 + + + + + +
   // **********************************************************************
+ +41 + + + + + +
   // ******** methods
+ +42 + + + + + +
   public static Logger getLogger()
+ +43 + + + + + +
   {
+ +44 + + +1 + +1. getLogger : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → SURVIVED
+ +
+
      initLogs();
+ +45 + + +1 + +1. getLogger : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(Instance.StandardLogger);
+ +46 + + + + + +
   }
+ +47 + + + + + +
+ +48 + + + + + +
   // **********************************************************************
+ +49 + + + + + +
   public static void clearLogs()
+ +50 + + + + + +
   {
+ +51 + + + + + +
      File theFile = null;
+ +52 + + + + + +
+ +53 + + +1 + +1. clearLogs : negated conditional → NO_COVERAGE
+ +
+
      if (Instance != null)
+ +54 + + + + + +
      {
+ +55 + + + + + +
         Instance.StdLogHandler = null;
+ +56 + + + + + +
         Instance.StandardLogger = null;
+ +57 + + + + + +
         Instance = null;
+ +58 + + + + + +
      }
+ +59 + + + + + +
      // delete file if it already exists
+ +60 + + + + + +
      theFile = new File(LogFileName);
+ +61 + + +1 + +1. clearLogs : negated conditional → NO_COVERAGE
+ +
+
      if (theFile.exists())
+ +62 + + + + + +
      {
+ +63 + + + + + +
         theFile.delete();
+ +64 + + + + + +
      }
+ +65 + + + + + +
+ +66 + + + + + +
      return;
+ +67 + + + + + +
   }
+ +68 + + + + + +
+ +69 + + + + + +
   // **********************************************************************
+ +70 + + + + + +
   // protected
+ +71 + + + + + +
   // **********************************************************************
+ +72 + + + + + +
   // ******** attributes
+ +73 + + + + + +
   protected static MyLogger Instance = null;
+ +74 + + + + + +
   protected Logger StandardLogger = null;
+ +75 + + + + + +
   protected Handler StdLogHandler = null;
+ +76 + + + + + +
   protected MyUselessClass MyValues = null;
+ +77 + + + + + +
+ +78 + + + + + +
   // **********************************************************************
+ +79 + + + + + +
   // ******** methods
+ +80 + + + + + +
   protected static Level stringToLevel(String level)
+ +81 + + + + + +
   {
+ +82 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +83 + + + + + +
      Level theLevel = Level.WARNING;
+ +84 + + + + + +
+ +85 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      if (level.equals("OFF"))
+ +86 + + + + + +
      {
+ +87 + + + + + +
         theLevel = Level.OFF;
+ +88 + + + + + +
      }
+ +89 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("SEVERE"))
+ +90 + + + + + +
      {
+ +91 + + + + + +
         theLevel = Level.SEVERE;
+ +92 + + + + + +
      }
+ +93 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("WARNING"))
+ +94 + + + + + +
      {
+ +95 + + + + + +
         theLevel = Level.WARNING;
+ +96 + + + + + +
      }
+ +97 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("INFO"))
+ +98 + + + + + +
      {
+ +99 + + + + + +
         theLevel = Level.INFO;
+ +100 + + + + + +
      }
+ +101 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("CONFIG"))
+ +102 + + + + + +
      {
+ +103 + + + + + +
         theLevel = Level.CONFIG;
+ +104 + + + + + +
      }
+ +105 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINE"))
+ +106 + + + + + +
      {
+ +107 + + + + + +
         theLevel = Level.FINE;
+ +108 + + + + + +
      }
+ +109 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINER"))
+ +110 + + + + + +
      {
+ +111 + + + + + +
         theLevel = Level.FINER;
+ +112 + + + + + +
      }
+ +113 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("FINEST"))
+ +114 + + + + + +
      {
+ +115 + + + + + +
         theLevel = Level.FINEST;
+ +116 + + + + + +
      }
+ +117 + + +1 + +1. stringToLevel : negated conditional → KILLED
+ +
+
      else if (level.equals("ALL"))
+ +118 + + + + + +
      {
+ +119 + + + + + +
         theLevel = Level.ALL;
+ +120 + + + + + +
      }
+ +121 + + + + + +
+ +122 + + +1 + +1. stringToLevel : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +123 + + + + + +
   }
+ +124 + + + + + +
+ +125 + + + + + +
   // **********************************************************************
+ +126 + + + + + +
   protected static String levelToString(Level level)
+ +127 + + + + + +
   {
+ +128 + + + + + +
      // levels: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
+ +129 + + + + + +
      String theLevel = "WARNING";
+ +130 + + + + + +
+ +131 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      if (level == Level.OFF)
+ +132 + + + + + +
      {
+ +133 + + + + + +
         theLevel = "OFF";
+ +134 + + + + + +
      }
+ +135 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.SEVERE)
+ +136 + + + + + +
      {
+ +137 + + + + + +
         theLevel = "SEVERE";
+ +138 + + + + + +
      }
+ +139 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.WARNING)
+ +140 + + + + + +
      {
+ +141 + + + + + +
         theLevel = "WARNING";
+ +142 + + + + + +
      }
+ +143 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.INFO)
+ +144 + + + + + +
      {
+ +145 + + + + + +
         theLevel = "INFO";
+ +146 + + + + + +
      }
+ +147 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.CONFIG)
+ +148 + + + + + +
      {
+ +149 + + + + + +
         theLevel = "CONFIG";
+ +150 + + + + + +
      }
+ +151 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINE)
+ +152 + + + + + +
      {
+ +153 + + + + + +
         theLevel = "FINE";
+ +154 + + + + + +
      }
+ +155 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINER)
+ +156 + + + + + +
      {
+ +157 + + + + + +
         theLevel = "FINER";
+ +158 + + + + + +
      }
+ +159 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.FINEST)
+ +160 + + + + + +
      {
+ +161 + + + + + +
         theLevel = "FINEST";
+ +162 + + + + + +
      }
+ +163 + + +1 + +1. levelToString : negated conditional → KILLED
+ +
+
      else if (level == Level.ALL)
+ +164 + + + + + +
      {
+ +165 + + + + + +
         theLevel = "ALL";
+ +166 + + + + + +
      }
+ +167 + + + + + +
+ +168 + + +1 + +1. levelToString : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(theLevel);
+ +169 + + + + + +
   }
+ +170 + + + + + +
+ +171 + + + + + +
   // **********************************************************************
+ +172 + + + + + +
   protected static void initLogs()
+ +173 + + + + + +
   {
+ +174 + + + + + +
      Formatter logFormater = null;
+ +175 + + + + + +
      boolean fileCreated = false;
+ +176 + + +1 + +1. initLogs : removed call to java/util/Locale::setDefault → SURVIVED
+ +
+
      Locale.setDefault(Locale.ENGLISH);
+ +177 + + + + + +
+ +178 + + +1 + +1. initLogs : negated conditional → KILLED
+ +
+
      if (Instance == null)
+ +179 + + + + + +
      {
+ +180 + + + + + +
         Instance = new MyLogger();
+ +181 + + + + + +
         Instance.StandardLogger = Logger.getLogger(MyLogger.class.getName());
+ +182 + + + + + +
         Instance.StandardLogger.setUseParentHandlers(false);
+ +183 + + + + + +
         Instance.MyValues = new MyUselessClass();
+ +184 + + + + + +
   
+ +185 + + + + + +
         try
+ +186 + + + + + +
         {
+ +187 + + + + + +
            Instance.StdLogHandler = new FileHandler(LogFileName, false);
+ +188 + + + + + +
            Instance.StdLogHandler.setFormatter(new SimpleFormatter());
+ +189 + + + + + +
            fileCreated = true;
+ +190 + + + + + +
         }
+ +191 + + + + + +
         catch (Exception e)
+ +192 + + + + + +
         {
+ +193 + + + + + +
            Instance.StdLogHandler = new ConsoleHandler();
+ +194 + + + + + +
         }
+ +195 + + + + + +
         Instance.StandardLogger.addHandler(Instance.StdLogHandler);
+ +196 + + + + + +
   
+ +197 + + + + + +
         Instance.StandardLogger.setLevel(Level.WARNING);
+ +198 + + + + + +
         Instance.StdLogHandler.setLevel(Level.WARNING);
+ +199 + + + + + +
   
+ +200 + + +1 + +1. initLogs : negated conditional → SURVIVED
+ +
+
         if (fileCreated)
+ +201 + + + + + +
         {
+ +202 + + + + + +
            Instance.StandardLogger.info("Log file created");
+ +203 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → SURVIVED
+ +
+
            Instance.MyValues.setAll();
+ +204 + + + + + +
         }
+ +205 + + + + + +
         else
+ +206 + + + + + +
         {
+ +207 + + +1 + +1. initLogs : removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE
+ +
+
            Instance.MyValues.clearAll();
+ +208 + + + + + +
            Instance.StandardLogger.warning
+ +209 + + + + + +
               ("Cannot create log file, redirecting logs to the console");
+ +210 + + + + + +
         }
+ +211 + + + + + +
      }
+ +212 + + + + + +
   }
+ +213 + + + + + +
}

Mutations

30 + + + +

1.1
Location : getLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
44 + + + +

1.1
Location : getLogger
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::initLogs → SURVIVED

+
45 + + + +

1.1
Location : getLogger
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::getLogger to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
53 + + + +

1.1
Location : clearLogs
Killed by : none
negated conditional → NO_COVERAGE

+
61 + + + +

1.1
Location : clearLogs
Killed by : none
negated conditional → NO_COVERAGE

+
85 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
89 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
93 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
97 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
101 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
105 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
109 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
113 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
122 + + + +

1.1
Location : stringToLevel
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::stringToLevel to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
131 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
135 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
139 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
143 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
147 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
151 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
155 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
159 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
163 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
168 + + + +

1.1
Location : levelToString
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooLogs/MyLogger::levelToString to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
176 + + + +

1.1
Location : initLogs
Killed by : none
removed call to java/util/Locale::setDefault → SURVIVED

+
178 + + + +

1.1
Location : initLogs
Killed by : eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest)
negated conditional → KILLED

+
200 + + + +

1.1
Location : initLogs
Killed by : none
negated conditional → SURVIVED

+
203 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::setAll → SURVIVED

+
207 + + + +

1.1
Location : initLogs
Killed by : none
removed call to eu/stamp_project/examples/dnoo/dnooLogs/MyUselessClass::clearAll → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (9 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (8 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel1(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (12 ms)
  • eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest.testMyLoggerSetLevel2(eu.stamp_project.examples.dnoo.dnooLogs.MyLoggerTest) (1 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html new file mode 100644 index 0000000..c41865e --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooLogs/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooLogs

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
167%
58/86
77%
23/30
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyLogger.java
67%
58/86
77%
23/30
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html new file mode 100644 index 0000000..5a1432d --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/MyStorage.java.html @@ -0,0 +1,3544 @@ + + + + + + + + +

MyStorage.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +1 + + + + + +
package eu.stamp_project.examples.dnoo.dnooStorage;
+ +2 + + + + + +
+ +3 + + + + + +
// **********************************************************************
+ +4 + + + + + +
import java.io.PrintStream;
+ +5 + + + + + +
import java.io.BufferedReader;
+ +6 + + + + + +
import java.io.FileReader;
+ +7 + + + + + +
import java.io.IOException;
+ +8 + + + + + +
import java.io.File;
+ +9 + + + + + +
import java.util.*;
+ +10 + + + + + +
+ +11 + + + + + +
import eu.stamp_project.examples.dnoo.dnooLogs.MyLogger;
+ +12 + + + + + +
+ +13 + + + + + +
// **********************************************************************
+ +14 + + + + + +
public class MyStorage
+ +15 + + + + + +
{
+ +16 + + + + + +
   // **********************************************************************
+ +17 + + + + + +
   // public
+ +18 + + + + + +
   // **********************************************************************
+ +19 + + + + + +
   // ******** methods
+ +20 + + + + + +
+ +21 + + + + + +
   // **********************************************************************
+ +22 + + + + + +
   public static void deleteFile(String fileName)
+ +23 + + + + + +
   {
+ +24 + + + + + +
      String methodName = "deleteFile";
+ +25 + + + + + +
      MyLogger.getLogger().entering("MyStorage", methodName);
+ +26 + + + + + +
+ +27 + + + + + +
      File theFile = null;
+ +28 + + + + + +
+ +29 + + + + + +
      // delete file if it already exists
+ +30 + + + + + +
      theFile = new File(fileName);
+ +31 + + +1 + +1. deleteFile : negated conditional → SURVIVED
+ +
+
      if (theFile.exists())
+ +32 + + + + + +
      {
+ +33 + + + + + +
         theFile.delete();
+ +34 + + + + + +
      }
+ +35 + + + + + +
+ +36 + + + + + +
      MyLogger.getLogger().exiting("MyStorage", methodName);
+ +37 + + + + + +
   }
+ +38 + + + + + +
+ +39 + + + + + +
   // **********************************************************************
+ +40 + + + + + +
   public MyStorage()
+ +41 + + + + + +
   {
+ +42 + + + + + +
      String methodName = "MyStorage";
+ +43 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +44 + + + + + +
+ +45 + + + + + +
      FileName = "my_storage.txt";
+ +46 + + + + + +
      MyData = new ArrayList<String>();
+ +47 + + + + + +
+ +48 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +49 + + + + + +
   }
+ +50 + + + + + +
+ +51 + + + + + +
   // **********************************************************************
+ +52 + + + + + +
   public MyStorage(String fileName)
+ +53 + + + + + +
   {
+ +54 + + + + + +
      String methodName = "MyStorage_String";
+ +55 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +56 + + + + + +
+ +57 + + + + + +
      this.FileName = fileName;
+ +58 + + + + + +
      MyData = new ArrayList<String>();
+ +59 + + + + + +
+ +60 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +61 + + + + + +
   }
+ +62 + + + + + +
+ +63 + + + + + +
   // **********************************************************************
+ +64 + + + + + +
   public void readData()
+ +65 + + + + + +
   {
+ +66 + + + + + +
      String methodName = "readData";
+ +67 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +68 + + + + + +
+ +69 + + + + + +
      BufferedReader myBuffer = null;
+ +70 + + + + + +
      FileReader myFile = null;
+ +71 + + + + + +
      String currentLine;
+ +72 + + + + + +
+ +73 + + + + + +
      try
+ +74 + + + + + +
      {
+ +75 + + + + + +
         myFile = new FileReader(FileName);
+ +76 + + + + + +
         myBuffer = new BufferedReader(myFile);
+ +77 + + +1 + +1. readData : negated conditional → KILLED
+ +
+
         while ((currentLine = myBuffer.readLine()) != null)
+ +78 + + + + + +
         {
+ +79 + + +1 + +1. readData : removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED
+ +
+
            addData(currentLine);
+ +80 + + + + + +
         }
+ +81 + + + + + +
      }
+ +82 + + + + + +
      catch(IOException e)
+ +83 + + + + + +
      {
+ +84 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot read " + FileName);
+ +85 + + + + + +
      }
+ +86 + + + + + +
+ +87 + + + + + +
      try
+ +88 + + + + + +
      {
+ +89 + + +1 + +1. readData : negated conditional → SURVIVED
+ +
+
         if (myBuffer != null)
+ +90 + + + + + +
         {
+ +91 + + +1 + +1. readData : removed call to java/io/BufferedReader::close → SURVIVED
+ +
+
            myBuffer.close();
+ +92 + + + + + +
         }
+ +93 + + +1 + +1. readData : negated conditional → SURVIVED
+ +
+
         if (myFile != null)
+ +94 + + + + + +
         {
+ +95 + + +1 + +1. readData : removed call to java/io/FileReader::close → SURVIVED
+ +
+
            myFile.close();
+ +96 + + + + + +
         }
+ +97 + + + + + +
      }
+ +98 + + + + + +
      catch(IOException e)
+ +99 + + + + + +
      {
+ +100 + + +1 + +1. readData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: closing " + FileName);
+ +101 + + + + + +
      }
+ +102 + + + + + +
+ +103 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +104 + + + + + +
   }
+ +105 + + + + + +
+ +106 + + + + + +
   // **********************************************************************
+ +107 + + + + + +
   public void saveData()
+ +108 + + + + + +
   {
+ +109 + + + + + +
      String methodName = "saveData";
+ +110 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +111 + + + + + +
+ +112 + + + + + +
      try
+ +113 + + + + + +
      {
+ +114 + + + + + +
         PrintStream writer = new PrintStream(new File(FileName));
+ +115 + + +2 + +1. saveData : changed conditional boundary → KILLED
+2. saveData : negated conditional → KILLED
+ +
+
         for (int i = 0; i < getDataSize(); i++)
+ +116 + + + + + +
         {
+ +117 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → KILLED
+ +
+
            writer.println(getData(i));
+ +118 + + + + + +
         }
+ +119 + + +1 + +1. saveData : removed call to java/io/PrintStream::close → SURVIVED
+ +
+
         writer.close();
+ +120 + + + + + +
      }
+ +121 + + + + + +
      catch(IOException e)
+ +122 + + + + + +
      {
+ +123 + + +1 + +1. saveData : removed call to java/io/PrintStream::println → NO_COVERAGE
+ +
+
         System.out.println("Error: cannot write into " + FileName);
+ +124 + + + + + +
      }
+ +125 + + + + + +
+ +126 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +127 + + + + + +
   }
+ +128 + + + + + +
+ +129 + + + + + +
   // **********************************************************************
+ +130 + + + + + +
   public boolean isEqual(MyStorage anotherStorage)
+ +131 + + + + + +
   {
+ +132 + + + + + +
      String methodName = "isEqual";
+ +133 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +134 + + + + + +
+ +135 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == anotherStorage.getDataSize());
+ +136 + + + + + +
+ +137 + + +4 + +1. isEqual : negated conditional → SURVIVED
+2. isEqual : negated conditional → SURVIVED
+3. isEqual : changed conditional boundary → KILLED
+4. isEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +138 + + + + + +
      {
+ +139 + + +1 + +1. isEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(anotherStorage.getData(i))))
+ +140 + + + + + +
         {
+ +141 + + + + + +
            areEqual = false;
+ +142 + + + + + +
         } 
+ +143 + + + + + +
      }
+ +144 + + + + + +
+ +145 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +146 + + +1 + +1. isEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +147 + + + + + +
   }
+ +148 + + + + + +
+ +149 + + + + + +
   // **********************************************************************
+ +150 + + + + + +
   public boolean dataAreEqual(ArrayList<String> otherData)
+ +151 + + + + + +
   {
+ +152 + + + + + +
      String methodName = "dataAreEqual";
+ +153 + + + + + +
      MyLogger.getLogger().entering(getClass().getName(), methodName);
+ +154 + + + + + +
+ +155 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
      boolean areEqual = (getDataSize() == otherData.size());
+ +156 + + + + + +
+ +157 + + +4 + +1. dataAreEqual : negated conditional → SURVIVED
+2. dataAreEqual : negated conditional → SURVIVED
+3. dataAreEqual : changed conditional boundary → KILLED
+4. dataAreEqual : Changed increment from 1 to -1 → KILLED
+ +
+
      for (int i = 0; i < getDataSize() && areEqual; i++)
+ +158 + + + + + +
      {
+ +159 + + +1 + +1. dataAreEqual : negated conditional → KILLED
+ +
+
         if (! (getData(i).equals(otherData.get(i))))
+ +160 + + + + + +
         {
+ +161 + + + + + +
            areEqual = false;
+ +162 + + + + + +
         } 
+ +163 + + + + + +
      }
+ +164 + + + + + +
+ +165 + + + + + +
      MyLogger.getLogger().exiting(getClass().getName(), methodName);
+ +166 + + +1 + +1. dataAreEqual : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(areEqual);
+ +167 + + + + + +
   }
+ +168 + + + + + +
+ +169 + + + + + +
   // **********************************************************************
+ +170 + + + + + +
   // ******** attributes
+ +171 + + + + + +
+ +172 + + + + + +
   // **********************************************************************
+ +173 + + + + + +
   public String getFileName()
+ +174 + + + + + +
   {
+ +175 + + +1 + +1. getFileName : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(FileName);
+ +176 + + + + + +
   }
+ +177 + + + + + +
+ +178 + + + + + +
   // **********************************************************************
+ +179 + + + + + +
   public int getDataSize()
+ +180 + + + + + +
   {
+ +181 + + +1 + +1. getDataSize : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
+ +
+
      return(MyData.size());
+ +182 + + + + + +
   }
+ +183 + + + + + +
+ +184 + + + + + +
   // **********************************************************************
+ +185 + + + + + +
   public String getData(int index)
+ +186 + + + + + +
   {
+ +187 + + +1 + +1. getData : mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED
+ +
+
      return(MyData.get(index));
+ +188 + + + + + +
   }
+ +189 + + + + + +
+ +190 + + + + + +
   // **********************************************************************
+ +191 + + + + + +
   public void addData(String aData)
+ +192 + + + + + +
   {
+ +193 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize())
+ +194 + + + + + +
         + " - aData = " + aData);
+ +195 + + + + + +
+ +196 + + + + + +
      MyData.add(aData);
+ +197 + + + + + +
+ +198 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize()));
+ +199 + + + + + +
   }
+ +200 + + + + + +
+ +201 + + + + + +
   // **********************************************************************
+ +202 + + + + + +
   public void delData(String aData)
+ +203 + + + + + +
   {
+ +204 + + + + + +
      MyLogger.getLogger().finest("IN : DataSize = " + Integer.toString(getDataSize()));
+ +205 + + + + + +
+ +206 + + + + + +
      boolean found = false;
+ +207 + + + + + +
+ +208 + + +4 + +1. delData : changed conditional boundary → NO_COVERAGE
+2. delData : Changed increment from 1 to -1 → NO_COVERAGE
+3. delData : negated conditional → NO_COVERAGE
+4. delData : negated conditional → NO_COVERAGE
+ +
+
      for (int i = 0; i < getDataSize() && ! found; i++)
+ +209 + + + + + +
      {
+ +210 + + +1 + +1. delData : negated conditional → NO_COVERAGE
+ +
+
         if (getData(i).equals(aData))
+ +211 + + + + + +
         {
+ +212 + + + + + +
            MyData.remove(i);
+ +213 + + + + + +
            found = true;
+ +214 + + + + + +
         } 
+ +215 + + + + + +
      } 
+ +216 + + + + + +
+ +217 + + + + + +
      MyLogger.getLogger().finest("OUT: DataSize = " + Integer.toString(getDataSize())
+ +218 + + + + + +
         + " - found = " + Boolean.toString(found));
+ +219 + + + + + +
   }
+ +220 + + + + + +
+ +221 + + + + + +
   // **********************************************************************
+ +222 + + + + + +
   // private
+ +223 + + + + + +
   // **********************************************************************
+ +224 + + + + + +
   // ******** attributes
+ +225 + + + + + +
   private String FileName;
+ +226 + + + + + +
   private ArrayList<String> MyData;
+ +227 + + + + + +
}

Mutations

31 + + + +

1.1
Location : deleteFile
Killed by : none
negated conditional → SURVIVED

+
77 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
79 + + + +

1.1
Location : readData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::addData → KILLED

+
84 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
89 + + + +

1.1
Location : readData
Killed by : none
negated conditional → SURVIVED

+
91 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/BufferedReader::close → SURVIVED

+
93 + + + +

1.1
Location : readData
Killed by : none
negated conditional → SURVIVED

+
95 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/FileReader::close → SURVIVED

+
100 + + + +

1.1
Location : readData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
115 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
117 + + + +

1.1
Location : saveData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
removed call to java/io/PrintStream::println → KILLED

+
119 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::close → SURVIVED

+
123 + + + +

1.1
Location : saveData
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
135 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
137 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : isEqual
Killed by : none
negated conditional → SURVIVED

+
139 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
146 + + + +

1.1
Location : isEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
155 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
157 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
changed conditional boundary → KILLED

2.2
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

4.4
Location : dataAreEqual
Killed by : none
negated conditional → SURVIVED

+
159 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
negated conditional → KILLED

+
166 + + + +

1.1
Location : dataAreEqual
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
175 + + + +

1.1
Location : getFileName
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getFileName to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
181 + + + +

1.1
Location : getDataSize
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

+
187 + + + +

1.1
Location : getData
Killed by : eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest)
mutated return of Object value for eu/stamp_project/examples/dnoo/dnooStorage/MyStorage::getData to ( if (x != null) null else throw new RuntimeException ) → KILLED

+
208 + + + +

1.1
Location : delData
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : delData
Killed by : none
Changed increment from 1 to -1 → NO_COVERAGE

3.3
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

4.4
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
210 + + + +

1.1
Location : delData
Killed by : none
negated conditional → NO_COVERAGE

+
+ + +

Active mutators

+
    +
  • INCREMENTS_MUTATOR
  • +
  • VOID_METHOD_CALL_MUTATOR
  • +
  • RETURN_VALS_MUTATOR
  • +
  • MATH_MUTATOR
  • +
  • NEGATE_CONDITIONALS_MUTATOR
  • +
  • INVERT_NEGS_MUTATOR
  • +
  • CONDITIONALS_BOUNDARY_MUTATOR
  • + +
+ +

Tests examined

+
    +
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testSaveReadData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (9 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testAddData(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (8 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageDefault(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.testMyStorageString(eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest) (2 ms)
  • +
+ +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/index.html b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/index.html new file mode 100644 index 0000000..07553f6 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/eu.stamp_project.examples.dnoo.dnooStorage/index.html @@ -0,0 +1,57 @@ + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

eu.stamp_project.examples.dnoo.dnooStorage

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
180%
68/85
50%
18/36
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + +
NameLine CoverageMutation Coverage
MyStorage.java
80%
68/85
50%
18/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/index.html b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/index.html new file mode 100644 index 0000000..70ea43c --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/index.html @@ -0,0 +1,66 @@ + + + + + + + +

Pit Test Coverage Report

+ +

Project Summary

+ + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation Coverage
274%
126/171
62%
41/66
+ + +

Breakdown by Package

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
NameNumber of ClassesLine CoverageMutation Coverage
eu.stamp_project.examples.dnoo.dnooLogs1
67%
58/86
77%
23/30
eu.stamp_project.examples.dnoo.dnooStorage1
80%
68/85
50%
18/36
+
+ + + +
+ +Report generated by PIT 1.3.2 + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/style.css b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/style.css new file mode 100644 index 0000000..cd65bd3 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/pit-reports/201804231936/style.css @@ -0,0 +1,563 @@ +html, body, div, span, p, blockquote, pre { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body{ + line-height: 1; + color: black; + background: white; + margin-left: 20px; +} + +.src { + border: 1px solid #dddddd; + padding-top: 10px; + padding-right: 5px; + padding-left: 5px; + font-family: Consolas, Courier, monospace; +} + +.covered { + background-color: #ddffdd; +} + +.uncovered { + background-color: #ffdddd; +} + +.killed, .KILLED { + background-color: #aaffaa; +} + +.survived, .SURVIVED { + background-color: #ffaaaa; +} + +.uncertain { + background-color: #dde7ef; +} + +.run_error { + background-color: #dde7ef; +} + +.na { + background-color: #eeeeee; +} + +.timed_out { + background-color: #dde7ef; +} + +.non_viable { + background-color: #aaffaa; +} + +.memory_error { + background-color: #dde7ef; +} + +.not_started { + background-color: #dde7ef; color : red +} + +.no_coverage { + background-color: #ffaaaa; +} + +.tests { + width: 50%; + float: left; +} + +.mutees { + float: right; + width: 50%; +} + +.unit { + padding-top: 20px; + clear: both; +} + +.coverage_bar { + display: inline-block; + height: 1.1em; + width: 130px; + background: #FAA; + margin: 0 5px; + vertical-align: middle; + border: 1px solid #AAA; + position: relative; +} + +.coverage_complete { + display: inline-block; + height: 100%; + background: #DFD; + float: left; +} + +.coverage_legend { + position: absolute; + height: 100%; + width: 100%; + left: 0; + top: 0; + text-align: center; +} + +.line, .mut { + vertical-align: middle; +} + +.coverage_percentage { + display: inline-block; + width: 3em; + text-align: right; +} + +.pop { + outline:none; +} + +.pop strong { + line-height: 30px; +} + +.pop { + text-decoration: none; +} + +.pop span { + z-index: 10; + display: none; + padding: 14px 20px; + margin-top: -30px; + margin-left: 28px; + width: 800px; + line-height: 16px; + word-wrap: break-word; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -moz-box-shadow: 5px 5px 8px #CCC; + -webkit-box-shadow: 5px 5px 8px #CCC; + box-shadow: 5px 5px 8px #CCC; +} + +.pop:hover span { + display: inline; + position: absolute; + color: #111; + border: 1px solid #DCA; + background: #fffAF0; +} + +.width-1 { + width: 1%; +} + +.width-2 { + width: 2%; +} + +.width-3 { + width: 3%; +} + +.width-4 { + width: 4%; +} + +.width-5 { + width: 5%; +} + +.width-6 { + width: 6%; +} + +.width-7 { + width: 7%; +} + +.width-8 { + width: 8%; +} + +.width-9 { + width: 9%; +} + +.width-10 { + width: 10%; +} + +.width-11 { + width: 11%; +} + +.width-12 { + width: 12%; +} + +.width-13 { + width: 13%; +} + +.width-14 { + width: 14%; +} + +.width-15 { + width: 15%; +} + +.width-16 { + width: 16%; +} + +.width-17 { + width: 17%; +} + +.width-18 { + width: 18%; +} + +.width-19 { + width: 19%; +} + +.width-20 { + width: 20%; +} + +.width-21 { + width: 21%; +} + +.width-22 { + width: 22%; +} + +.width-23 { + width: 23%; +} + +.width-24 { + width: 24%; +} + +.width-25 { + width: 25%; +} + +.width-26 { + width: 26%; +} + +.width-27 { + width: 27%; +} + +.width-28 { + width: 28%; +} + +.width-29 { + width: 29%; +} + +.width-30 { + width: 30%; +} + +.width-31 { + width: 31%; +} + +.width-32 { + width: 32%; +} + +.width-33 { + width: 33%; +} + +.width-34 { + width: 34%; +} + +.width-35 { + width: 35%; +} + +.width-36 { + width: 36%; +} + +.width-37 { + width: 37%; +} + +.width-38 { + width: 38%; +} + +.width-39 { + width: 39%; +} + +.width-40 { + width: 40%; +} + +.width-41 { + width: 41%; +} + +.width-42 { + width: 42%; +} + +.width-43 { + width: 43%; +} + +.width-44 { + width: 44%; +} + +.width-45 { + width: 45%; +} + +.width-46 { + width: 46%; +} + +.width-47 { + width: 47%; +} + +.width-48 { + width: 48%; +} + +.width-49 { + width: 49%; +} + +.width-50 { + width: 50%; +} + +.width-51 { + width: 51%; +} + +.width-52 { + width: 52%; +} + +.width-53 { + width: 53%; +} + +.width-54 { + width: 54%; +} + +.width-55 { + width: 55%; +} + +.width-56 { + width: 56%; +} + +.width-57 { + width: 57%; +} + +.width-58 { + width: 58%; +} + +.width-59 { + width: 59%; +} + +.width-60 { + width: 60%; +} + +.width-61 { + width: 61%; +} + +.width-62 { + width: 62%; +} + +.width-63 { + width: 63%; +} + +.width-64 { + width: 64%; +} + +.width-65 { + width: 65%; +} + +.width-66 { + width: 66%; +} + +.width-67 { + width: 67%; +} + +.width-68 { + width: 68%; +} + +.width-69 { + width: 69%; +} + +.width-70 { + width: 70%; +} + +.width-71 { + width: 71%; +} + +.width-72 { + width: 72%; +} + +.width-73 { + width: 73%; +} + +.width-74 { + width: 74%; +} + +.width-75 { + width: 75%; +} + +.width-76 { + width: 76%; +} + +.width-77 { + width: 77%; +} + +.width-78 { + width: 78%; +} + +.width-79 { + width: 79%; +} + +.width-80 { + width: 80%; +} + +.width-81 { + width: 81%; +} + +.width-82 { + width: 82%; +} + +.width-83 { + width: 83%; +} + +.width-84 { + width: 84%; +} + +.width-85 { + width: 85%; +} + +.width-86 { + width: 86%; +} + +.width-87 { + width: 87%; +} + +.width-88 { + width: 88%; +} + +.width-89 { + width: 89%; +} + +.width-90 { + width: 90%; +} + +.width-91 { + width: 91%; +} + +.width-92 { + width: 92%; +} + +.width-93 { + width: 93%; +} + +.width-94 { + width: 94%; +} + +.width-95 { + width: 95%; +} + +.width-96 { + width: 96%; +} + +.width-97 { + width: 97%; +} + +.width-98 { + width: 98%; +} + +.width-99 { + width: 99%; +} + +.width-100 { + width: 100%; +} \ No newline at end of file diff --git a/test_dir/dnoo/dnooStorage/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.xml b/test_dir/dnoo/dnooStorage/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.xml new file mode 100644 index 0000000..5b0d851 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/surefire-reports/TEST-eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test_dir/dnoo/dnooStorage/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.txt b/test_dir/dnoo/dnooStorage/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.txt new file mode 100644 index 0000000..87161d7 --- /dev/null +++ b/test_dir/dnoo/dnooStorage/target/surefire-reports/eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest +------------------------------------------------------------------------------- +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec - in eu.stamp_project.examples.dnoo.dnooStorage.MyStorageTest diff --git a/test_dir/dnoo/dnooStorage/target/test-classes/eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.class b/test_dir/dnoo/dnooStorage/target/test-classes/eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.class new file mode 100644 index 0000000..9ad3798 Binary files /dev/null and b/test_dir/dnoo/dnooStorage/target/test-classes/eu/stamp_project/examples/dnoo/dnooStorage/MyStorageTest.class differ diff --git a/test_dir/dnoo/pitmp.traces b/test_dir/dnoo/pitmp.traces new file mode 100644 index 0000000..f2aa0c0 --- /dev/null +++ b/test_dir/dnoo/pitmp.traces @@ -0,0 +1,498 @@ +######## 19:36:50 +[INFO] Error stacktraces are turned on. +[INFO] Scanning for projects... +[INFO] ------------------------------------------------------------------------ +[INFO] Reactor Build Order: +[INFO] +[INFO] dnoo +[INFO] dnooLogs +[INFO] dnooStorage +[INFO] dnooHello +[INFO] dnooIntegration +[INFO] dnooMain +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building dnoo 1.0.1 +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- pitmp-maven-plugin:1.1.5-SNAPSHOT:run (default-cli) @ dnoo --- +[INFO] Skipping project because: +[INFO] - Packaging is POM. +[INFO] - Project has no tests, it is empty. +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building dnooLogs 1.0.1 +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- pitmp-maven-plugin:1.1.5-SNAPSHOT:run (default-cli) @ dnooLogs --- +[INFO] Found plugin : Default html report plugin +[INFO] Found plugin : Default csv report plugin +[INFO] Found plugin : Default xml report plugin +[INFO] Found plugin : Static initializer code detector plugin +[INFO] Found plugin : Static initializer filter plugin +[INFO] Found plugin : Excluded annotations plugin +[INFO] Found plugin : Inlined finally block filter plugin +[INFO] Found plugin : Try with resources filter +[INFO] Found plugin : Implicit null check filter +[INFO] Found plugin : For each loop filter +[INFO] Found plugin : Logging calls filter +[INFO] Found plugin : Infinite for loop filter +[INFO] Found plugin : Long running iterator loop filter +[INFO] Found plugin : For loop counter filter +[INFO] Found plugin : Kotlin junk mutations filter +[INFO] Found plugin : Max mutations per class limit +[INFO] Found plugin : Equals shortcut equivalent mutant filter +[INFO] Found plugin : Trivial return vals equivalence filter +[INFO] Found plugin : Mutant export plugin +[INFO] Found shared classpath plugin : Default mutation engine +[INFO] Found shared classpath plugin : JUnit plugin +[INFO] Found shared classpath plugin : TestNG plugin +[INFO] Adding org.pitest:pitest to SUT classpath +[INFO] Mutating from /home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooLogs/target/classes +7:36:52 PM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue. +7:36:53 PM PIT >> INFO : Sending 3 test classes to minion +7:36:53 PM PIT >> INFO : Sent tests to minion +7:36:53 PM PIT >> INFO : MINION : 7:36:53 PM PIT >> INFO : Checking environment + +7:36:53 PM PIT >> INFO : MINION : 7:36:53 PM PIT >> INFO : Found 3 tests + +7:36:53 PM PIT >> INFO : MINION : 7:36:53 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0 + +7:36:53 PM PIT >> INFO : MINION : 7:36:53 PM PIT >> INFO : 3 tests received + +/-\7:36:53 PM PIT >> INFO : Calculated coverage in 0 seconds. +7:36:53 PM PIT >> INFO : Created 1 mutation test units +/7:36:54 PM PIT >> INFO : Completed in 1 seconds +================================================================================ +- Timings +================================================================================ +> scan classpath : < 1 second +> coverage and dependency analysis : < 1 second +> build mutation tests : < 1 second +> run mutation analysis : < 1 second +-------------------------------------------------------------------------------- +> Total : 1 seconds +-------------------------------------------------------------------------------- +================================================================================ +- Statistics +================================================================================ +>> Generated 30 mutations Killed 23 (77%) +>> Ran 29 tests (0.97 tests per mutation) +================================================================================ +- Mutators +================================================================================ +> org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator +>> Generated 4 Killed 0 (0%) +> KILLED 0 SURVIVED 3 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator +>> Generated 4 Killed 4 (100%) +> KILLED 4 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 0 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator +>> Generated 22 Killed 19 (86%) +> KILLED 19 SURVIVED 1 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 2 +-------------------------------------------------------------------------------- +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building dnooStorage 1.0.1 +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- pitmp-maven-plugin:1.1.5-SNAPSHOT:run (default-cli) @ dnooStorage --- +[INFO] Found plugin : Default html report plugin +[INFO] Found plugin : Default csv report plugin +[INFO] Found plugin : Default xml report plugin +[INFO] Found plugin : Static initializer code detector plugin +[INFO] Found plugin : Static initializer filter plugin +[INFO] Found plugin : Excluded annotations plugin +[INFO] Found plugin : Inlined finally block filter plugin +[INFO] Found plugin : Try with resources filter +[INFO] Found plugin : Implicit null check filter +[INFO] Found plugin : For each loop filter +[INFO] Found plugin : Logging calls filter +[INFO] Found plugin : Infinite for loop filter +[INFO] Found plugin : Long running iterator loop filter +[INFO] Found plugin : For loop counter filter +[INFO] Found plugin : Kotlin junk mutations filter +[INFO] Found plugin : Max mutations per class limit +[INFO] Found plugin : Equals shortcut equivalent mutant filter +[INFO] Found plugin : Trivial return vals equivalence filter +[INFO] Found plugin : Mutant export plugin +[INFO] Found shared classpath plugin : Default mutation engine +[INFO] Found shared classpath plugin : JUnit plugin +[INFO] Found shared classpath plugin : TestNG plugin +[INFO] Adding org.pitest:pitest to SUT classpath +[INFO] Mutating from /home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooStorage/target/classes +7:36:54 PM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue. +7:36:54 PM PIT >> INFO : Sending 5 test classes to minion +7:36:54 PM PIT >> INFO : Sent tests to minion +7:36:54 PM PIT >> INFO : MINION : 7:36:54 PM PIT >> INFO : Checking environment + +7:36:54 PM PIT >> INFO : MINION : 7:36:54 PM PIT >> INFO : Found 7 tests + +7:36:54 PM PIT >> INFO : MINION : 7:36:54 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0 + +7:36:54 PM PIT >> INFO : MINION : 7:36:54 PM PIT >> INFO : 7 tests received + +/-\|/-\7:36:55 PM PIT >> INFO : Calculated coverage in 0 seconds. +7:36:55 PM PIT >> INFO : Created 2 mutation test units +/-7:36:56 PM PIT >> INFO : Completed in 2 seconds +================================================================================ +- Timings +================================================================================ +> scan classpath : < 1 second +> coverage and dependency analysis : < 1 second +> build mutation tests : < 1 second +> run mutation analysis : 1 seconds +-------------------------------------------------------------------------------- +> Total : 1 seconds +-------------------------------------------------------------------------------- +================================================================================ +- Statistics +================================================================================ +>> Generated 66 mutations Killed 41 (62%) +>> Ran 69 tests (1.05 tests per mutation) +================================================================================ +- Mutators +================================================================================ +> org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator +>> Generated 4 Killed 3 (75%) +> KILLED 3 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.IncrementsMutator +>> Generated 3 Killed 2 (67%) +> KILLED 2 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator +>> Generated 12 Killed 2 (17%) +> KILLED 2 SURVIVED 6 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 4 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator +>> Generated 9 Killed 9 (100%) +> KILLED 9 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 0 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator +>> Generated 38 Killed 25 (66%) +> KILLED 25 SURVIVED 8 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 5 +-------------------------------------------------------------------------------- +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building dnooHello 1.0.1 +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- pitmp-maven-plugin:1.1.5-SNAPSHOT:run (default-cli) @ dnooHello --- +[INFO] Found plugin : Default html report plugin +[INFO] Found plugin : Default csv report plugin +[INFO] Found plugin : Default xml report plugin +[INFO] Found plugin : Static initializer code detector plugin +[INFO] Found plugin : Static initializer filter plugin +[INFO] Found plugin : Excluded annotations plugin +[INFO] Found plugin : Inlined finally block filter plugin +[INFO] Found plugin : Try with resources filter +[INFO] Found plugin : Implicit null check filter +[INFO] Found plugin : For each loop filter +[INFO] Found plugin : Logging calls filter +[INFO] Found plugin : Infinite for loop filter +[INFO] Found plugin : Long running iterator loop filter +[INFO] Found plugin : For loop counter filter +[INFO] Found plugin : Kotlin junk mutations filter +[INFO] Found plugin : Max mutations per class limit +[INFO] Found plugin : Equals shortcut equivalent mutant filter +[INFO] Found plugin : Trivial return vals equivalence filter +[INFO] Found plugin : Mutant export plugin +[INFO] Found shared classpath plugin : Default mutation engine +[INFO] Found shared classpath plugin : JUnit plugin +[INFO] Found shared classpath plugin : TestNG plugin +[INFO] Adding org.pitest:pitest to SUT classpath +[INFO] Mutating from /home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooHello/target/classes +7:36:56 PM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue. +7:36:56 PM PIT >> INFO : Sending 8 test classes to minion +7:36:56 PM PIT >> INFO : Sent tests to minion +7:36:57 PM PIT >> INFO : MINION : 7:36:56 PM PIT >> INFO : Checking environment + +7:36:57 PM PIT >> INFO : MINION : 7:36:57 PM PIT >> INFO : Found 16 tests + +7:36:57 PM PIT >> INFO : MINION : 7:36:57 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0 + +7:36:57 PM PIT >> INFO : MINION : 7:36:57 PM PIT >> INFO : 16 tests received + +/-\|/-\|/-\|/-\|7:36:57 PM PIT >> INFO : Calculated coverage in 0 seconds. +7:36:57 PM PIT >> INFO : Created 3 mutation test units +/-7:37:03 PM PIT >> WARNING : Minion exited abnormally due to TIMED_OUT +\7:37:03 PM PIT >> INFO : Completed in 7 seconds +================================================================================ +- Timings +================================================================================ +> scan classpath : < 1 second +> coverage and dependency analysis : < 1 second +> build mutation tests : < 1 second +> run mutation analysis : 6 seconds +-------------------------------------------------------------------------------- +> Total : 7 seconds +-------------------------------------------------------------------------------- +================================================================================ +- Statistics +================================================================================ +>> Generated 89 mutations Killed 58 (65%) +>> Ran 166 tests (1.87 tests per mutation) +================================================================================ +- Mutators +================================================================================ +> org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator +>> Generated 6 Killed 4 (67%) +> KILLED 4 SURVIVED 1 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.IncrementsMutator +>> Generated 4 Killed 3 (75%) +> KILLED 2 SURVIVED 0 TIMED_OUT 1 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator +>> Generated 23 Killed 9 (39%) +> KILLED 9 SURVIVED 10 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 4 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator +>> Generated 14 Killed 13 (93%) +> KILLED 13 SURVIVED 1 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 0 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator +>> Generated 42 Killed 29 (69%) +> KILLED 29 SURVIVED 8 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 5 +-------------------------------------------------------------------------------- +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building dnooIntegration 1.0.1 +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- pitmp-maven-plugin:1.1.5-SNAPSHOT:run (default-cli) @ dnooIntegration --- +[INFO] Found plugin : Default html report plugin +[INFO] Found plugin : Default csv report plugin +[INFO] Found plugin : Default xml report plugin +[INFO] Found plugin : Static initializer code detector plugin +[INFO] Found plugin : Static initializer filter plugin +[INFO] Found plugin : Excluded annotations plugin +[INFO] Found plugin : Inlined finally block filter plugin +[INFO] Found plugin : Try with resources filter +[INFO] Found plugin : Implicit null check filter +[INFO] Found plugin : For each loop filter +[INFO] Found plugin : Logging calls filter +[INFO] Found plugin : Infinite for loop filter +[INFO] Found plugin : Long running iterator loop filter +[INFO] Found plugin : For loop counter filter +[INFO] Found plugin : Kotlin junk mutations filter +[INFO] Found plugin : Max mutations per class limit +[INFO] Found plugin : Equals shortcut equivalent mutant filter +[INFO] Found plugin : Trivial return vals equivalence filter +[INFO] Found plugin : Mutant export plugin +[INFO] Found shared classpath plugin : Default mutation engine +[INFO] Found shared classpath plugin : JUnit plugin +[INFO] Found shared classpath plugin : TestNG plugin +[INFO] Adding org.pitest:pitest to SUT classpath +[INFO] Mutating from /home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooIntegration/target/classes +7:37:03 PM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue. +7:37:04 PM PIT >> INFO : Sending 12 test classes to minion +7:37:04 PM PIT >> INFO : Sent tests to minion +7:37:04 PM PIT >> INFO : MINION : 7:37:04 PM PIT >> INFO : Checking environment + +7:37:04 PM PIT >> INFO : MINION : 7:37:04 PM PIT >> INFO : Found 22 tests + +7:37:04 PM PIT >> INFO : MINION : 7:37:04 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0 + +7:37:04 PM PIT >> INFO : MINION : 7:37:04 PM PIT >> INFO : 22 tests received + +/-\|/-\|/-\|/-\|/-\|/-7:37:04 PM PIT >> INFO : Calculated coverage in 0 seconds. +7:37:04 PM PIT >> INFO : Created 3 mutation test units +/-7:37:09 PM PIT >> WARNING : Minion exited abnormally due to TIMED_OUT +7:37:13 PM PIT >> WARNING : Minion exited abnormally due to TIMED_OUT +\7:37:14 PM PIT >> INFO : Completed in 10 seconds +================================================================================ +- Timings +================================================================================ +> scan classpath : < 1 second +> coverage and dependency analysis : < 1 second +> build mutation tests : < 1 second +> run mutation analysis : 9 seconds +-------------------------------------------------------------------------------- +> Total : 10 seconds +-------------------------------------------------------------------------------- +================================================================================ +- Statistics +================================================================================ +>> Generated 89 mutations Killed 73 (82%) +>> Ran 250 tests (2.81 tests per mutation) +================================================================================ +- Mutators +================================================================================ +> org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator +>> Generated 6 Killed 5 (83%) +> KILLED 5 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.IncrementsMutator +>> Generated 4 Killed 3 (75%) +> KILLED 2 SURVIVED 0 TIMED_OUT 1 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator +>> Generated 23 Killed 15 (65%) +> KILLED 15 SURVIVED 4 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 4 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator +>> Generated 14 Killed 14 (100%) +> KILLED 14 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 0 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator +>> Generated 42 Killed 36 (86%) +> KILLED 35 SURVIVED 3 TIMED_OUT 1 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 3 +-------------------------------------------------------------------------------- +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building dnooMain 1.0.1 +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- pitmp-maven-plugin:1.1.5-SNAPSHOT:run (default-cli) @ dnooMain --- +[INFO] Found plugin : Default html report plugin +[INFO] Found plugin : Default csv report plugin +[INFO] Found plugin : Default xml report plugin +[INFO] Found plugin : Static initializer code detector plugin +[INFO] Found plugin : Static initializer filter plugin +[INFO] Found plugin : Excluded annotations plugin +[INFO] Found plugin : Inlined finally block filter plugin +[INFO] Found plugin : Try with resources filter +[INFO] Found plugin : Implicit null check filter +[INFO] Found plugin : For each loop filter +[INFO] Found plugin : Logging calls filter +[INFO] Found plugin : Infinite for loop filter +[INFO] Found plugin : Long running iterator loop filter +[INFO] Found plugin : For loop counter filter +[INFO] Found plugin : Kotlin junk mutations filter +[INFO] Found plugin : Max mutations per class limit +[INFO] Found plugin : Equals shortcut equivalent mutant filter +[INFO] Found plugin : Trivial return vals equivalence filter +[INFO] Found plugin : Mutant export plugin +[INFO] Found shared classpath plugin : Default mutation engine +[INFO] Found shared classpath plugin : JUnit plugin +[INFO] Found shared classpath plugin : TestNG plugin +[INFO] Adding org.pitest:pitest to SUT classpath +[INFO] Mutating from /home/cael/stamp/inria_github/pitmp-maven-plugin/test_dir/dnoo/dnooMain/target/classes +7:37:14 PM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue. +7:37:14 PM PIT >> INFO : Sending 13 test classes to minion +7:37:14 PM PIT >> INFO : Sent tests to minion +7:37:14 PM PIT >> INFO : MINION : 7:37:14 PM PIT >> INFO : Checking environment + +7:37:15 PM PIT >> INFO : MINION : 7:37:15 PM PIT >> INFO : Found 22 tests + +7:37:15 PM PIT >> INFO : MINION : 7:37:15 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0 +7:37:15 PM PIT >> INFO : 22 tests received + +/-\|/-\|/-\|/-\|/-\|/-7:37:15 PM PIT >> INFO : Calculated coverage in 0 seconds. +7:37:15 PM PIT >> INFO : Created 4 mutation test units +/-\7:37:20 PM PIT >> WARNING : Minion exited abnormally due to TIMED_OUT +7:37:24 PM PIT >> WARNING : Minion exited abnormally due to TIMED_OUT +|7:37:25 PM PIT >> INFO : Completed in 11 seconds +================================================================================ +- Timings +================================================================================ +> scan classpath : < 1 second +> coverage and dependency analysis : < 1 second +> build mutation tests : < 1 second +> run mutation analysis : 10 seconds +-------------------------------------------------------------------------------- +> Total : 11 seconds +-------------------------------------------------------------------------------- +================================================================================ +- Statistics +================================================================================ +>> Generated 132 mutations Killed 73 (55%) +>> Ran 255 tests (1.93 tests per mutation) +================================================================================ +- Mutators +================================================================================ +> org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator +>> Generated 9 Killed 5 (56%) +> KILLED 5 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 4 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.IncrementsMutator +>> Generated 4 Killed 3 (75%) +> KILLED 2 SURVIVED 0 TIMED_OUT 1 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 1 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator +>> Generated 48 Killed 15 (31%) +> KILLED 15 SURVIVED 4 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 29 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator +>> Generated 14 Killed 14 (100%) +> KILLED 14 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 0 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.MathMutator +>> Generated 6 Killed 0 (0%) +> KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 6 +-------------------------------------------------------------------------------- +> org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator +>> Generated 51 Killed 36 (71%) +> KILLED 35 SURVIVED 3 TIMED_OUT 1 NON_VIABLE 0 +> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0 +> NO_COVERAGE 12 +-------------------------------------------------------------------------------- +[INFO] ------------------------------------------------------------------------ +[INFO] Reactor Summary: +[INFO] +[INFO] dnoo ............................................... SUCCESS [ 0.904 s] +[INFO] dnooLogs ........................................... SUCCESS [ 1.735 s] +[INFO] dnooStorage ........................................ SUCCESS [ 2.035 s] +[INFO] dnooHello .......................................... SUCCESS [ 7.118 s] +[INFO] dnooIntegration .................................... SUCCESS [ 10.708 s] +[INFO] dnooMain ........................................... SUCCESS [ 11.097 s] +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 33.787 s +[INFO] Finished at: 2018-04-23T19:37:25+02:00 +[INFO] Final Memory: 12M/292M +[INFO] ------------------------------------------------------------------------ +######## 19:37:25 +######## pom.xml.pitmp.conf1: OK +######################################## diff --git a/test_dir/dnoo/pom.xml b/test_dir/dnoo/pom.xml new file mode 100644 index 0000000..2f253d0 --- /dev/null +++ b/test_dir/dnoo/pom.xml @@ -0,0 +1,100 @@ + + + 4.0.0 + + eu.stamp-project + dnoo + pom + 1.0.1 + + + dnooHello + dnooIntegration + dnooLogs + dnooMain + dnooStorage + + + + UTF-8 + UTF-8 + + + + + + junit + junit + 4.12 + + + + + + + + eu.stamp-project + pitmp-maven-plugin + 1.1.5-SNAPSHOT + + + + eu.stamp_project.examples.dnoo* + + + + + eu.stamp_project.examples.dnoo.dnooLogs.MyUselessClass + + + eu.stamp_project.examples.dnoo.dnooLogs.MyLogger.stringToLevel + eu.stamp_project.examples.dnoo.dnooStorage.MyStorage.deleteFile + eu.stamp_project.examples.dnoo.dnooHello.HelloApp.myPrint + eu.stamp_project.examples.dnoo.dnooHello.HelloApp.cardMyTraces + eu.stamp_project.examples.dnoo.dnooHello.HelloApp.getMyTraces + + + + + org.pitest + pitest-maven + 1.3.2 + + + + + + maven-clean-plugin + 2.5 + + + + . + + *.txt + *.traces + *.log + *.log.* + + false + + + + + + + + diff --git a/test_dir/dnoo/pom.xml.pitmp.conf1 b/test_dir/dnoo/pom.xml.pitmp.conf1 new file mode 100644 index 0000000..2f253d0 --- /dev/null +++ b/test_dir/dnoo/pom.xml.pitmp.conf1 @@ -0,0 +1,100 @@ + + + 4.0.0 + + eu.stamp-project + dnoo + pom + 1.0.1 + + + dnooHello + dnooIntegration + dnooLogs + dnooMain + dnooStorage + + + + UTF-8 + UTF-8 + + + + + + junit + junit + 4.12 + + + + + + + + eu.stamp-project + pitmp-maven-plugin + 1.1.5-SNAPSHOT + + + + eu.stamp_project.examples.dnoo* + + + + + eu.stamp_project.examples.dnoo.dnooLogs.MyUselessClass + + + eu.stamp_project.examples.dnoo.dnooLogs.MyLogger.stringToLevel + eu.stamp_project.examples.dnoo.dnooStorage.MyStorage.deleteFile + eu.stamp_project.examples.dnoo.dnooHello.HelloApp.myPrint + eu.stamp_project.examples.dnoo.dnooHello.HelloApp.cardMyTraces + eu.stamp_project.examples.dnoo.dnooHello.HelloApp.getMyTraces + + + + + org.pitest + pitest-maven + 1.3.2 + + + + + + maven-clean-plugin + 2.5 + + + + . + + *.txt + *.traces + *.log + *.log.* + + false + + + + + + + + diff --git a/test_dir/dnoo/pom.xml.pitmp.noconf b/test_dir/dnoo/pom.xml.pitmp.noconf new file mode 100644 index 0000000..829e655 --- /dev/null +++ b/test_dir/dnoo/pom.xml.pitmp.noconf @@ -0,0 +1,71 @@ + + + 4.0.0 + + eu.stamp-project + dnoo + pom + 1.0.1 + + + dnooHello + dnooIntegration + dnooLogs + dnooMain + dnooStorage + + + + UTF-8 + UTF-8 + + + + + + junit + junit + 4.12 + + + + + + + + eu.stamp-project + pitmp-maven-plugin + 1.1.5-SNAPSHOT + + + org.pitest + pitest-maven + 1.3.2 + + + + + + maven-clean-plugin + 2.5 + + + + . + + *.txt + *.traces + *.log + *.log.* + + false + + + + + + + + diff --git a/test_dir/dnoo/run_tests_20180423_18h15.res b/test_dir/dnoo/run_tests_20180423_18h15.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_18h15.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_18h17.res b/test_dir/dnoo/run_tests_20180423_18h17.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_18h17.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_18h21.res b/test_dir/dnoo/run_tests_20180423_18h21.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_18h21.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_18h52.res b/test_dir/dnoo/run_tests_20180423_18h52.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_18h52.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_18h57.res b/test_dir/dnoo/run_tests_20180423_18h57.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_18h57.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h09.res b/test_dir/dnoo/run_tests_20180423_19h09.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h09.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h12.res b/test_dir/dnoo/run_tests_20180423_19h12.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h12.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h17.res b/test_dir/dnoo/run_tests_20180423_19h17.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h17.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h19.res b/test_dir/dnoo/run_tests_20180423_19h19.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h19.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h24.res b/test_dir/dnoo/run_tests_20180423_19h24.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h24.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h26.res b/test_dir/dnoo/run_tests_20180423_19h26.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h26.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h33.res b/test_dir/dnoo/run_tests_20180423_19h33.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h33.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/dnoo/run_tests_20180423_19h36.res b/test_dir/dnoo/run_tests_20180423_19h36.res new file mode 100644 index 0000000..dafa1e6 --- /dev/null +++ b/test_dir/dnoo/run_tests_20180423_19h36.res @@ -0,0 +1,2 @@ +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/test_dir/run_all_tests.sh b/test_dir/run_all_tests.sh new file mode 100755 index 0000000..1f79d5e --- /dev/null +++ b/test_dir/run_all_tests.sh @@ -0,0 +1,14 @@ +#!/bin/sh +################################################################################ +currentDir=`pwd` +testScript="$currentDir/run_tests.sh" + +dirList="dhell dnoo" + +for theDir in $dirList +do + cd $currentDir + cd $theDir + echo "################ $theDir" + $testScript +done diff --git a/test_dir/run_tests.sh b/test_dir/run_tests.sh new file mode 100755 index 0000000..1b21322 --- /dev/null +++ b/test_dir/run_tests.sh @@ -0,0 +1,54 @@ +#!/bin/sh +################################################################################ +fileExtension="pitmp" +pomFile="pom.xml" +pomNameBase="pom.xml.$fileExtension" +confList="noconf conf1" + +testResFile="run_tests_"`date +%Y%m%d_%Hh%M`".res" +rm -rf $fileExtension.failed.* + +for theConf in $confList +do + thePom="$pomNameBase.$theConf" + traceFile="$fileExtension.traces" + errorFile="$fileExtension.failed.$theConf" + + echo "########################################" >$traceFile 2>&1 + + if test -f $thePom + then + # silent build + mvn clean 2>&1 >/dev/null + cp $thePom $pomFile + mvn install 2>&1 >/dev/null + + tracedDate=`date +%T` + echo "######## $tracedDate" >>$traceFile 2>&1 + mvn -e pitmp:run >> $traceFile 2>&1 + tracedDate=`date +%T` + echo "######## $tracedDate" >>$traceFile 2>&1 + + # check the result, keep the traces file if test failed + runRes=`grep '\[INFO\] BUILD SUCCESS' $traceFile` + if test "X$runRes" = "X" + then + echo "######## $thePom: FAILED" 2>&1 | tee -a $testResFile + echo "######## $thePom: FAILED" >> $traceFile 2>&1 + echo "########################################" >> $traceFile 2>&1 + cp $traceFile $errorFile + else + echo "######## $thePom: OK" 2>&1 | tee -a $testResFile + echo "######## $thePom: OK" >> $traceFile 2>&1 + echo "########################################" >> $traceFile 2>&1 + fi + else + tracedDate=`date +%T` + echo "######## $tracedDate" >> $traceFile 2>&1 + echo "######## $thePom: FAILED" 2>&1 | tee -a $testResFile + echo "######## $thePom: FAILED" >> $traceFile 2>&1 + echo "########################################" >> $traceFile 2>&1 + cp $traceFile $errorFile + fi + +done diff --git a/test_dir/verify_pitmp.ref b/test_dir/verify_pitmp.ref new file mode 100644 index 0000000..a46df14 --- /dev/null +++ b/test_dir/verify_pitmp.ref @@ -0,0 +1,6 @@ +################ dhell +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK +################ dnoo +######## pom.xml.pitmp.noconf: OK +######## pom.xml.pitmp.conf1: OK diff --git a/verify_pitmp.sh b/verify_pitmp.sh new file mode 100755 index 0000000..fee5b15 --- /dev/null +++ b/verify_pitmp.sh @@ -0,0 +1,55 @@ +#!/bin/sh +################################################################################ +# compile, install locally and run automatic tests +currentDir="`pwd`" + +testName="verify_pitmp" +traceFile="$currentDir/$testName.traces" +compileFile=$currentDir/$testName"_compile.traces" +testDir="$currentDir/test_dir" +runResFile="$testDir/run_all_tests.res" +refResult="$testDir/$testName.ref" +tmpResFile=$testDir/$testName"_res.$$" +tmpDiffFile=$testDir/$testName"_diff.$$" + +# clean previous trace files +rm -f $traceFile $compileFile $runResFile $testDir/$testName"_diff".* $testDir/$testName"_res".* + +echo "------------------------------------------------------------" 2>&1 | tee $traceFile +echo "- compile and install locally" 2>&1 | tee -a $traceFile +echo "------------------------------------------------------------" 2>&1 | tee -a $traceFile +if mvn clean install >> $compileFile 2>&1 +then + echo "OK" 2>&1 | tee -a $traceFile + echo "------------------------------------------------------------" 2>&1 | tee -a $traceFile + echo "- run tests" 2>&1 | tee -a $traceFile + echo "------------------------------------------------------------" 2>&1 | tee -a $traceFile + cd $testDir + ./run_all_tests.sh >$runResFile 2>&1 + + # check result + grep "^########" $runResFile > $tmpResFile + if diff $tmpResFile $refResult >$tmpDiffFile + then + echo "OK" 2>&1 | tee -a $traceFile + # clean all traces files + rm -f $traceFile $compileFile $runResFile $testDir/$testName"_diff".* $testDir/$testName"_res".* + exit 0 + else + echo "FAILED" 2>&1 | tee -a $traceFile + echo "-------- results" 2>&1 | tee -a $traceFile + cat "$tmpResFile" 2>&1 | tee -a $traceFile + echo "-------- diff" 2>&1 | tee -a $traceFile + cat "$tmpDiffFile" 2>&1 | tee -a $traceFile + # remove trace files except the main one + rm -f $compileFile $runResFile $testDir/$testName"_diff".* $testDir/$testName"_res".* + exit 1 + fi +else + echo "FAILED" 2>&1 | tee -a $traceFile + echo "-------- traces" 2>&1 | tee -a $traceFile + cat "$compileFile" 2>&1 | tee -a $traceFile + # remove trace files except the main one + rm -f $compileFile $runResFile $testDir/$testName"_diff".* $testDir/$testName"_res".* + exit 1 +fi