use of com.adaptris.core.util.PayloadMessageLogger in project interlok by adaptris.
the class ExampleWorkflowCase method testSetMessageLogger.
@Test
public void testSetMessageLogger() throws Exception {
AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage();
WorkflowImp wf = createWorkflowForGenericTests();
assertNull(wf.getMessageLogger());
assertNotNull(wf.messageLogger());
assertEquals(DefaultMessageLogger.class, wf.messageLogger().getClass());
assertNotNull(wf.messageLogger().toString(msg));
wf.setMessageLogger(new PayloadMessageLogger());
assertNotNull(wf.getMessageLogger());
assertNotNull(wf.messageLogger());
assertEquals(PayloadMessageLogger.class, wf.messageLogger().getClass());
assertNotNull(wf.messageLogger().toString(msg));
}
Aggregations