use of com.adaptris.core.event.AdapterStopEvent in project interlok by adaptris.
the class AdapterTest method testAdapterLogsEventSendException.
// Probably a redundant test, but you get a nice warm feeling from have 100%
// code coverage don't you
@Test
public void testAdapterLogsEventSendException() throws Exception {
Adapter a = createAdapter("testAdapterLogsEventSendException", new StubEventHandler() {
@Override
public void send(Event evt) throws CoreException {
if (evt instanceof AdapterCloseEvent) {
throw new CoreException();
} else if (evt instanceof AdapterStopEvent) {
throw new CoreException();
}
}
});
a.requestStart();
a.requestClose();
}
Aggregations