use of com.adaptris.core.NullProcessingExceptionHandler in project interlok by adaptris.
the class JmsTransactedWorkflowTest method createPlainChannel.
private Channel createPlainChannel() throws Exception {
GuidGenerator guid = new GuidGenerator();
Channel result = new MockChannel();
result.setUniqueId(guid.create(result));
result.setMessageErrorHandler(new NullProcessingExceptionHandler());
return result;
}
use of com.adaptris.core.NullProcessingExceptionHandler in project interlok by adaptris.
the class ExampleWorkflowCase method testRegisterObjects.
@Test
public void testRegisterObjects() throws Exception {
WorkflowImp wf = createWorkflowForGenericTests();
wf.registerChannel(new Channel());
try {
wf.registerChannel(null);
fail();
} catch (IllegalArgumentException e) {
;
}
wf.registerActiveMsgErrorHandler(new NullProcessingExceptionHandler());
try {
wf.registerActiveMsgErrorHandler(null);
fail();
} catch (IllegalArgumentException e) {
;
}
wf.registerActiveMsgErrorHandler(new NullProcessingExceptionHandler());
try {
wf.registerActiveMsgErrorHandler(null);
fail();
} catch (IllegalArgumentException e) {
;
}
wf.registerEventHandler(new DefaultEventHandler());
try {
wf.registerEventHandler(null);
fail();
} catch (IllegalArgumentException e) {
;
}
}
use of com.adaptris.core.NullProcessingExceptionHandler in project interlok by adaptris.
the class BasicActiveMqConsumerTest method createChannel.
private Channel createChannel(AdaptrisConnection cc, Workflow wf) throws Exception {
Channel result = new MockChannel();
result.setMessageErrorHandler(new NullProcessingExceptionHandler());
result.setConsumeConnection(cc);
result.getWorkflowList().add(wf);
result.prepare();
return result;
}
use of com.adaptris.core.NullProcessingExceptionHandler in project interlok by adaptris.
the class JettyHelper method createChannel.
public static Channel createChannel(AdaptrisConnection connection, Workflow... workflows) throws Exception {
Channel result = new MockChannel();
result.setUniqueId("channel");
result.registerEventHandler(createEventHandler());
result.setMessageErrorHandler(new NullProcessingExceptionHandler());
result.setConsumeConnection(connection);
for (Workflow w : workflows) {
result.getWorkflowList().add(w);
}
return result;
}
Aggregations