EncodedSegment.java

1
package fr.sii.ogham.sms.splitter;
2
3
import fr.sii.ogham.sms.encoder.Encoded;
4
5
/**
6
 * Represents a segment that has been encoded.
7
 * 
8
 * @author Aurélien Baudet
9
 *
10
 */
11
public class EncodedSegment implements Segment {
12
	private final Encoded encoded;
13
14
	/**
15
	 * Initializes the segment with the encoded content.
16
	 * 
17
	 * @param encoded
18
	 *            the encoded content for the segment
19
	 */
20
	public EncodedSegment(Encoded encoded) {
21
		super();
22
		this.encoded = encoded;
23
	}
24
25
	/**
26
	 * @return the encoded content
27
	 */
28
	public Encoded getEncoded() {
29 4 1. getEncoded : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → NO_COVERAGE
2. getEncoded : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → TIMED_OUT
3. getEncoded : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → KILLED
4. getEncoded : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → KILLED
		return encoded;
30
	}
31
32
	@Override
33
	public byte[] getBytes() {
34 5 1. getBytes : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → NO_COVERAGE
2. getBytes : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → TIMED_OUT
3. getBytes : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → KILLED
4. getBytes : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → KILLED
5. getBytes : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → KILLED
		return encoded.getBytes();
35
	}
36
}

Mutations

29

1.1
Location : getEncoded
Killed by : oghamall.it.sms.SmsSMPPGsm7bitTest.longMessage(oghamall.it.sms.SmsSMPPGsm7bitTest)
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → KILLED

2.2
Location : getEncoded
Killed by : oghamcloudhopper.it.PartialConfigurationTest.nothingConfiguredAndLongMessageShouldSendOneLongMessageUsingDefaultEncoding(oghamcloudhopper.it.PartialConfigurationTest)
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → KILLED

3.3
Location : getEncoded
Killed by : none
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → TIMED_OUT

4.4
Location : getEncoded
Killed by : none
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → NO_COVERAGE

34

1.1
Location : getBytes
Killed by : oghamcloudhopper.it.PartialConfigurationTest.nothingConfiguredAndLongMessageShouldSendOneLongMessageUsingDefaultEncoding(oghamcloudhopper.it.PartialConfigurationTest)
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → KILLED

2.2
Location : getBytes
Killed by : oghamall.it.sms.SmsSMPPGsm7bitTest.longMessage(oghamall.it.sms.SmsSMPPGsm7bitTest)
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → KILLED

3.3
Location : getBytes
Killed by : none
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → NO_COVERAGE

4.4
Location : getBytes
Killed by : none
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → TIMED_OUT

5.5
Location : getBytes
Killed by : oghamcore.it.sms.splitter.GsmMessageSplitterTest
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM