AbstractParent.java

1
package fr.sii.ogham.core.fluent;
2
3
/**
4
 * Base implementation that handles the parent and the {@link #and()} method.
5
 * 
6
 * @author Aurélien Baudet
7
 *
8
 * @param <P>
9
 *            the type of the parent (when calling {@link #and()} method)
10
 */
11
public abstract class AbstractParent<P> implements Parent<P> {
12
	/**
13
	 * The parent instance
14
	 */
15
	protected final P parent;
16
17
	/**
18
	 * Initialize the parent instance
19
	 * 
20
	 * @param parent
21
	 *            the parent
22
	 */
23
	public AbstractParent(P parent) {
24
		super();
25
		this.parent = parent;
26
	}
27
28
	@Override
29
	public P and() {
30 1 1. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → RUN_ERROR
		return parent;
31
	}
32
33
}

Mutations

30

1.1
Location : and
Killed by :
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → RUN_ERROR

Active mutators

Tests examined


Report generated by PIT 1.13.1