ShortMessageWithContext.java

1
package fr.sii.ogham.testing.assertion.sms;
2
3
import fr.sii.ogham.testing.assertion.context.Context;
4
import fr.sii.ogham.testing.sms.simulator.bean.SubmitSm;
5
6
/**
7
 * Context dedicated to the {@code short_message} field of a {@link SubmitSm}.
8
 * 
9
 * @author Aurélien Baudet
10
 *
11
 * @param <S>
12
 *            the type of the {@link SubmitSm}
13
 */
14
public class ShortMessageWithContext<S extends SubmitSm> implements Context {
15
	private final S request;
16
	private final Context parent;
17
18
	/**
19
	 * @param request
20
	 *            the sent request
21
	 * @param parent
22
	 *            the parent context
23
	 */
24
	public ShortMessageWithContext(S request, Context parent) {
25
		super();
26
		this.request = request;
27
		this.parent = parent;
28
	}
29
30
	@Override
31
	public String evaluate(String template) {
32 3 1. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → NO_COVERAGE
2. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → SURVIVED
3. evaluate : replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → KILLED
		return parent.evaluate(template);
33
	}
34
35
	/**
36
	 * @return the received request
37
	 */
38
	public S getRequest() {
39 4 1. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → NO_COVERAGE
2. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED
3. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED
4. getRequest : replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED
		return request;
40
	}
41
42
}

Mutations

32

1.1
Location : evaluate
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → KILLED

2.2
Location : evaluate
Killed by : none
replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → NO_COVERAGE

3.3
Location : evaluate
Killed by : none
replaced return value with "" for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::evaluate → SURVIVED

39

1.1
Location : getRequest
Killed by : oghamcloudhopper.it.PartialConfigurationTest.nothingConfiguredAndLongMessageShouldSendOneLongMessageUsingDefaultEncoding(oghamcloudhopper.it.PartialConfigurationTest)
replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED

2.2
Location : getRequest
Killed by : none
replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → NO_COVERAGE

3.3
Location : getRequest
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED

4.4
Location : getRequest
Killed by : oghamall.it.sms.SmsSMPPDefaultsTest.gsm8bitDefaultAlphabet(oghamall.it.sms.SmsSMPPDefaultsTest)
replaced return value with null for fr/sii/ogham/testing/assertion/sms/ShortMessageWithContext::getRequest → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM