use of com.adaptris.util.text.mime.ByteArrayIterator in project interlok by adaptris.
the class TestMultipartOutput method testCreateBase64MimeOutput.
@Test
public void testCreateBase64MimeOutput() {
try {
MultiPartOutput output = new MultiPartOutput(guid.getUUID());
output.addPart(PAYLOAD_1, ENCODING_BASE64, guid.getUUID());
ByteArrayIterator input = new ByteArrayIterator(output.getBytes());
assertEquals(NUMBER_OF_PARTS, 1, input.size());
} catch (Exception e) {
fail(e.getMessage());
}
}
Aggregations