Example1.java

1
package org.demo.intestption;
2
3
class Example1 {
4
5
    String ended(boolean success) {
6 1 1. ended : removed call to org/demo/intestption/Example1::incrementCount → SURVIVED
        incrementCount();
7 5 1. ended : replaced return value with "" for org/demo/intestption/Example1::ended → KILLED
2. ended : negated conditional → KILLED
3. ended : removed conditional - replaced equality check with false → KILLED
4. ended : removed conditional - replaced equality check with true → KILLED
5. ended : mutated return of Object value for org/demo/intestption/Example1::ended to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return (success ? "OK" : "KO");
8
    }
9
10
    private void incrementCount() {
11
        // This method will achieve very important things in its (short) life!
12
    }
13
14
}

Mutations

6

1.1
Location : ended
Killed by : none
removed call to org/demo/intestption/Example1::incrementCount → SURVIVED

7

1.1
Location : ended
Killed by : org.demo.intestption.Example1Test.ended_ShowReturnOK_WhenPassedSuccess(org.demo.intestption.Example1Test)
replaced return value with "" for org/demo/intestption/Example1::ended → KILLED

2.2
Location : ended
Killed by : org.demo.intestption.Example1Test.ended_ShowReturnOK_WhenPassedSuccess(org.demo.intestption.Example1Test)
negated conditional → KILLED

3.3
Location : ended
Killed by : org.demo.intestption.Example1Test.ended_ShowReturnOK_WhenPassedSuccess(org.demo.intestption.Example1Test)
removed conditional - replaced equality check with false → KILLED

4.4
Location : ended
Killed by : org.demo.intestption.Example1Test.ended_ShowReturnKO_WhenPassedFailure(org.demo.intestption.Example1Test)
removed conditional - replaced equality check with true → KILLED

5.5
Location : ended
Killed by : org.demo.intestption.Example1Test.ended_ShowReturnOK_WhenPassedSuccess(org.demo.intestption.Example1Test)
mutated return of Object value for org/demo/intestption/Example1::ended to ( if (x != null) null else throw new RuntimeException ) → KILLED

Active mutators

Tests examined


Report generated by PIT 1.4.3