1 | package fr.sii.ogham.testing.util; | |
2 | ||
3 | /** | |
4 | * Represents a assertion helper that has parent assertions. | |
5 | * | |
6 | * @author Aurélien Baudet | |
7 | * | |
8 | * @param <P> | |
9 | * the type of the parent | |
10 | */ | |
11 | public class HasParent<P> { | |
12 | private final P parent; | |
13 | ||
14 | /** | |
15 | * Initializes with parent assertions | |
16 | * | |
17 | * @param parent | |
18 | * the parent instance that provides assertions | |
19 | */ | |
20 | public HasParent(P parent) { | |
21 | this.parent = parent; | |
22 | } | |
23 | ||
24 | /** | |
25 | * Go back to parent in the fluent API | |
26 | * | |
27 | * @return the parent instance | |
28 | */ | |
29 | public P and() { | |
30 |
8
1. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → NO_COVERAGE 2. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED 3. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED 4. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED 5. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED 6. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED 7. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED 8. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED |
return parent; |
31 | } | |
32 | } | |
Mutations | ||
30 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 |