CloudhopperCharsetAdapter.java

1
package fr.sii.ogham.testing.sms.simulator.decode;
2
3
/**
4
 * Wrapper that decodes bytes using Cloudhopper
5
 * {@link com.cloudhopper.commons.charset.Charset}
6
 * 
7
 * @author Aurélien Baudet
8
 *
9
 */
10
public class CloudhopperCharsetAdapter implements Charset {
11
	private final com.cloudhopper.commons.charset.Charset cloudhopperCharset;
12
13
	public CloudhopperCharsetAdapter(com.cloudhopper.commons.charset.Charset cloudhopperCharset) {
14
		super();
15
		this.cloudhopperCharset = cloudhopperCharset;
16
	}
17
18
	@Override
19
	public String decode(byte[] bytes) {
20 5 1. decode : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → NO_COVERAGE
2. decode : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → TIMED_OUT
3. decode : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → KILLED
4. decode : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → KILLED
5. decode : replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → KILLED
		return cloudhopperCharset.decode(bytes);
21
	}
22
}

Mutations

20

1.1
Location : decode
Killed by : oghamtesting.ut.sms.simulator.SmsUtilsSpec
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → KILLED

2.2
Location : decode
Killed by : none
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → TIMED_OUT

3.3
Location : decode
Killed by : oghamall.it.sms.SmsSMPPGsm7bitTest.longMessage(oghamall.it.sms.SmsSMPPGsm7bitTest)
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → KILLED

4.4
Location : decode
Killed by : none
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → NO_COVERAGE

5.5
Location : decode
Killed by : oghamcloudhopper.it.PartialConfigurationTest.nothingConfiguredAndLongMessageShouldSendOneLongMessageUsingDefaultEncoding(oghamcloudhopper.it.PartialConfigurationTest)
replaced return value with "" for fr/sii/ogham/testing/sms/simulator/decode/CloudhopperCharsetAdapter::decode → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM