@Test public void transformByteArray() { final ByteArrayToStringTransformer transformer = new ByteArrayToStringTransformer(); final String payload = "some message body"; final String transformed = transformer.transform(payload.getBytes()); assertThat(transformed, is(equalTo(payload))); }
@Override public String transform(final byte[] from) { if (from == null) { return null; } return new String(from); }
ByteArrayToStringTransformer extends BaseTransformer<byte[],String> { @Override public String transform(final byte[] from) { if (from == null) { return null; } return new String(from); } }
ByteArrayToStringTransformer extends BaseTransformer<byte[],String> { @Override public String transform(final byte[] from) { if (from == null) { return null; } return new String(from); } ByteArrayToStringTransformer(); }
ByteArrayToStringTransformer extends BaseTransformer<byte[],String> { @Override public String transform(final byte[] from) { if (from == null) { return null; } return new String(from); } ByteArrayToStringTransformer(); @Override String transform(final byte[] from); }
ByteArrayToStringTransformer extends BaseTransformer<byte[],String> { @Override public String transform(final byte[] from) { if (from == null) { return null; } return new String(from); } ByteArrayToStringTransformer(); @Override String transform(final byte[] from);  }