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 1 1. getEncoded : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getEncoded → NO_COVERAGE
		return encoded;
30
	}
31
32
	@Override
33
	public byte[] getBytes() {
34 1 1. getBytes : replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → RUN_ERROR
		return encoded.getBytes();
35
	}
36
}

Mutations

29

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

34

1.1
Location : getBytes
Killed by :
replaced return value with null for fr/sii/ogham/sms/splitter/EncodedSegment::getBytes → RUN_ERROR

Active mutators

Tests examined


Report generated by PIT 1.13.1