@Test public void testDoServiceWithFailures_NullEventHandler() throws Exception { MockMessageProducer producer = new MockMessageProducer(); AdaptrisMessage msg = createMessage(REGEXP_DATA); AdvancedMessageSplitterService service = createAdvanced(new SimpleRegexpMessageSplitter("\\|"), new Service[] { new ThrowExceptionService(new ConfiguredException("Fail")), new StandaloneProducer(producer) }); service.registerEventHandler(null); try { ExampleServiceCase.execute(service, msg); fail("Expecting failure from AlwaysFailService"); } catch (ServiceException expected) { ; } }
@Override public void registerEventHandler(EventHandler eh) { eventHandler = eh; }
AdvancedMessageSplitterService extends MessageSplitterServiceImp implements EventHandlerAware, ServiceWrapper { @Override public void registerEventHandler(EventHandler eh) { eventHandler = eh; } }
AdvancedMessageSplitterService extends MessageSplitterServiceImp implements EventHandlerAware, ServiceWrapper { @Override public void registerEventHandler(EventHandler eh) { eventHandler = eh; } AdvancedMessageSplitterService(); }
AdvancedMessageSplitterService extends MessageSplitterServiceImp implements EventHandlerAware, ServiceWrapper { @Override public void registerEventHandler(EventHandler eh) { eventHandler = eh; } AdvancedMessageSplitterService(); @Override void start(); @Override void stop(); Service getService(); void setService(Service sc); Boolean getSendEvents(); boolean sendEvents(); void setSendEvents(Boolean b); @Override void registerEventHandler(EventHandler eh); @Override void prepare(); @Override Service[] wrappedServices(); }
AdvancedMessageSplitterService extends MessageSplitterServiceImp implements EventHandlerAware, ServiceWrapper { @Override public void registerEventHandler(EventHandler eh) { eventHandler = eh; } AdvancedMessageSplitterService(); @Override void start(); @Override void stop(); Service getService(); void setService(Service sc); Boolean getSendEvents(); boolean sendEvents(); void setSendEvents(Boolean b); @Override void registerEventHandler(EventHandler eh); @Override void prepare(); @Override Service[] wrappedServices();  }