use of com.adaptris.core.stubs.MockSkipProducerService in project interlok by adaptris.
the class RequestReplyWorkflowTest method testWorkflow_SkipProducer_HasNoEffect.
@Test
public void testWorkflow_SkipProducer_HasNoEffect() throws Exception {
Channel channel = createChannel();
RequestReplyWorkflow workflow = (RequestReplyWorkflow) channel.getWorkflowList().get(0);
workflow.getServiceCollection().add(new MockSkipProducerService());
MockMessageProducer replier = (MockMessageProducer) workflow.getReplyProducer();
MockRequestReplyProducer requestor = (MockRequestReplyProducer) workflow.getProducer();
try {
start(channel);
submitMessages(workflow, 1);
doDefaultAssertions(requestor, replier);
AdaptrisMessage replyMsg = replier.getMessages().get(0);
assertTrue("Request Metadata", replyMsg.headersContainsKey(REQUEST_METADATA_KEY));
} finally {
stop(channel);
}
}
Aggregations