Search in sources :

Example 6 with InterlokMessage

use of com.adaptris.interlok.types.InterlokMessage in project interlok by adaptris.

the class ByteArrayFromPayloadTest method testWrapInterlokMessage.

@Test
public void testWrapInterlokMessage() throws Exception {
    InterlokMessage msg = new MyInterlokMessage();
    byte[] wrapped = new ByteArrayFromPayload().wrap(msg);
    assertTrue(MessageDigest.isEqual(BYTE_ARRAY, wrapped));
}
Also used : InterlokMessage(com.adaptris.interlok.types.InterlokMessage) Test(org.junit.Test)

Aggregations

InterlokMessage (com.adaptris.interlok.types.InterlokMessage)6 Test (org.junit.Test)6 InterlokException (com.adaptris.interlok.InterlokException)2 StringWriter (java.io.StringWriter)2 AdaptrisMessage (com.adaptris.core.AdaptrisMessage)1 CoreException (com.adaptris.core.CoreException)1 ServiceException (com.adaptris.core.ServiceException)1 MetadataDataOutputParameter (com.adaptris.core.common.MetadataDataOutputParameter)1 DataOutputParameter (com.adaptris.interlok.config.DataOutputParameter)1 IOException (java.io.IOException)1 StringReader (java.io.StringReader)1