use of org.mule.runtime.core.internal.transformer.simple.ByteArrayToHexString in project mule by mulesoft.
the class HexStringByteArrayTransformersTestCase method testUppercase.
// extra test for uppercase output
@Test
public void testUppercase() throws TransformerException {
ByteArrayToHexString t = new ByteArrayToHexString();
t.setUpperCase(true);
assertEquals(((String) getTestData()).toUpperCase(), t.transform(getResultData()));
}
use of org.mule.runtime.core.internal.transformer.simple.ByteArrayToHexString in project mule by mulesoft.
the class HexStringByteArrayTransformersTestCase method testStreaming.
@Test
public void testStreaming() throws TransformerException {
ByteArrayToHexString transformer = new ByteArrayToHexString();
InputStream input = new ByteArrayInputStream((byte[]) this.getResultData());
assertEquals(this.getTestData(), transformer.transform(input));
}
Aggregations