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