use of com.adaptris.core.stubs.XmlRoundTripService in project interlok by adaptris.
the class PoolingWorkflowTest method testRedmine1681.
@Test
public void testRedmine1681() throws Exception {
MockChannel channel = createChannel();
PoolingWorkflow wf = (PoolingWorkflow) channel.getWorkflowList().get(0);
MockMessageProducer meh = new MockMessageProducer();
MockMessageProducer prod = (MockMessageProducer) wf.getProducer();
wf.getServiceCollection().add(new XmlRoundTripService());
channel.setMessageErrorHandler(new StandardProcessingExceptionHandler(new ServiceList(new ArrayList<Service>(Arrays.asList(new Service[] { new StandaloneProducer(meh) })))));
try {
start(channel);
submitMessages(wf, 1);
waitForMessages(prod, 1);
assertEquals(0, meh.messageCount());
assertEquals(1, prod.messageCount());
} finally {
stop(channel);
}
}
Aggregations