OghamInternalAssertions.java

1
package fr.sii.ogham.testing.assertion;
2
3
import fr.sii.ogham.core.service.MessagingService;
4
import fr.sii.ogham.testing.assertion.internal.MessagingServiceAssertions;
5
6
/**
7
 * Utility class used by Ogham for testing result of {@link MessagingService}
8
 * configuration.
9
 * 
10
 * @author Aurélien Baudet
11
 *
12
 */
13
public final class OghamInternalAssertions {
14
	/**
15
	 * Entry point to write assertions on {@link MessagingService} instance.
16
	 * 
17
	 * For example:
18
	 * 
19
	 * <pre>
20
	 * {@code
21
	 * OghamInternalAssertions
22
	 *   .assertThat(messagingService)
23
	 *     .sendGrid()
24
	 *       .apiKey(equalTo("bar"))
25
	 *       .client(allOf(isA(SendGrid.class), not(isSpringBeanInstance(context, SendGrid.class))))
26
	 *       .and()
27
	 *     .thymeleaf()
28
	 * 		 .all()
29
	 *         .engine(isA(TemplateEngine.class))
30
	 *         .and()
31
	 *       .and()
32
	 *     .freemarker()
33
	 *       .all()
34
	 *         .configuration()
35
	 *           .defaultEncoding(equalTo(StandardCharsets.US_ASCII.name()));
36
	 * }
37
	 * </pre>
38
	 * 
39
	 * @param service
40
	 *            the service to make assertions with
41
	 * @return builder for fluent assertions on messaging service
42
	 */
43
	public static MessagingServiceAssertions assertThat(MessagingService service) {
44 4 1. assertThat : replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED
2. assertThat : replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED
3. assertThat : replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED
4. assertThat : replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED
		return new MessagingServiceAssertions(service);
45
	}
46
47
48
	private OghamInternalAssertions() {
49
		super();
50
	}
51
}

Mutations

44

1.1
Location : assertThat
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED

2.2
Location : assertThat
Killed by : oghamall.it.configuration.ThymeleafConfigurationTest.asDeveloperIDefineCustomPathPrefixInMyOwnCode(oghamall.it.configuration.ThymeleafConfigurationTest)
replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED

3.3
Location : assertThat
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED

4.4
Location : assertThat
Killed by : oghamsmsglobal.it.SmsglobalServiceProviderConfigurerSpec
replaced return value with null for fr/sii/ogham/testing/assertion/OghamInternalAssertions::assertThat → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM