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 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
Location : and
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED

2.2
Location : and
Killed by : oghamcloudhopper.it.PartialConfigurationTest.nothingConfiguredAndLongMessageShouldSendOneLongMessageUsingDefaultEncoding(oghamcloudhopper.it.PartialConfigurationTest)
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED

3.3
Location : and
Killed by : oghamall.it.configuration.EmptyBuilderTest.manualJavaMailConfigurationCanSendEmail(oghamall.it.configuration.EmptyBuilderTest)
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED

4.4
Location : and
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1AutoConfigurationTests.oghamInWebContext(oghamspringbootv1autoconfigure.it.OghamSpringBoot1AutoConfigurationTests)
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED

5.5
Location : and
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2AutoConfigurationTests.oghamInWebContext(oghamspringbootv2autoconfigure.it.OghamSpringBoot2AutoConfigurationTests)
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED

6.6
Location : and
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED

7.7
Location : and
Killed by : oghamjavamail.it.JavaMailSmtpTest.simple(oghamjavamail.it.JavaMailSmtpTest)
replaced return value with null for fr/sii/ogham/testing/util/HasParent::and → KILLED

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

Active mutators

Tests examined


Report generated by PIT OGHAM