1 | package org.junit.experimental.results; | |
2 | ||
3 | import java.util.List; | |
4 | ||
5 | import org.junit.runner.Result; | |
6 | import org.junit.runner.notification.Failure; | |
7 | import org.junit.runner.notification.RunListener; | |
8 | ||
9 | class FailureList { | |
10 | private final List<Failure> failures; | |
11 | ||
12 | public FailureList(List<Failure> failures) { | |
13 | this.failures = failures; | |
14 | } | |
15 | ||
16 | public Result result() { | |
17 | Result result = new Result(); | |
18 | RunListener listener = result.createListener(); | |
19 |
1
1. result : negated conditional → KILLED |
for (Failure failure : failures) { |
20 | try { | |
21 |
1
1. result : removed call to org/junit/runner/notification/RunListener::testFailure → KILLED |
listener.testFailure(failure); |
22 | } catch (Exception e) { | |
23 | throw new RuntimeException("I can't believe this happened"); | |
24 | } | |
25 | } | |
26 |
1
1. result : mutated return of Object value for org/junit/experimental/results/FailureList::result to ( if (x != null) null else throw new RuntimeException ) → KILLED |
return result; |
27 | } | |
28 | } | |
Mutations | ||
19 |
1.1 |
|
21 |
1.1 |
|
26 |
1.1 |