| 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 2.2 3.3 4.4 |
|
| 34 |
1.1 2.2 3.3 4.4 5.5 |