HasParent.java

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 1 1. and : replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → NO_COVERAGE
		return parent;
31
	}
32
}

Mutations

30

1.1
Location : and
Killed by :
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.13.1