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 11 1. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → NO_COVERAGE
2. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
3. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
4. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
5. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
6. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
7. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
8. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
9. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
10. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
11. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED
		return parent;
31
	}
32
33
}

Mutations

30

1.1
Location : and
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

2.2
Location : and
Killed by : oghamcore.it.core.builder.retry.RetryBuilderSpec
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

3.3
Location : and
Killed by : oghamfremarker.it.FreeMarkerParserTest.nested(oghamfremarker.it.FreeMarkerParserTest)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

4.4
Location : and
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

5.5
Location : and
Killed by : oghamjavamail.it.JavaMailSmtpTest.missingRecipientIsInvalid(oghamjavamail.it.JavaMailSmtpTest)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

6.6
Location : and
Killed by : oghamcloudhopper.it.PartialConfigurationTest.splitterEnabledAndAutoGuessEnabledAndGsm7bitEncodingConfiguredAndLongMessageWithUnsupportedCharactersShouldFailIndicatingThatMessageCantBeSplit(oghamcloudhopper.it.PartialConfigurationTest)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

7.7
Location : and
Killed by : none
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → NO_COVERAGE

8.8
Location : and
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

9.9
Location : and
Killed by : oghamall.it.configuration.EmptyBuilderTest.emailSenderManuallyRegisteredButUnconfiguredTemplateParsersCantHandleMultiTemplateContent(oghamall.it.configuration.EmptyBuilderTest)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

10.10
Location : and
Killed by : oghamthymeleafv2.it.ThymeleafDetectorTest.notFound(oghamthymeleafv2.it.ThymeleafDetectorTest)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

11.11
Location : and
Killed by : oghamthymeleafv3.it.ThymeleafDetectorTest.notFound(oghamthymeleafv3.it.ThymeleafDetectorTest)
replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM