use of com.adaptris.core.AdaptrisMessageProducer in project interlok by adaptris.
the class FailedMessageRetrierCase method createWorkflow.
protected StandardWorkflow createWorkflow(String uniqueId) throws Exception {
AdaptrisMessageConsumer consumer = new MockMessageConsumer();
AdaptrisMessageProducer producer = new MockMessageProducer();
StandardWorkflow workflow = new StandardWorkflow();
workflow.setUniqueId(uniqueId);
workflow.setConsumer(consumer);
workflow.setProducer(producer);
Channel channel = new MockChannel();
channel.setUniqueId(null);
channel.getWorkflowList().add(workflow);
channel.prepare();
return workflow;
}
use of com.adaptris.core.AdaptrisMessageProducer in project interlok by adaptris.
the class ExampleWorkflowCase method testSetProducer.
@Test
public void testSetProducer() throws Exception {
WorkflowImp wf = createWorkflowForGenericTests();
AdaptrisMessageProducer obj = wf.getProducer();
try {
wf.setProducer(null);
fail();
} catch (IllegalArgumentException e) {
}
assertEquals(obj, wf.getProducer());
}
Aggregations