@Test public void testDoService_DefaultServiceExtractor_NotService() throws Exception { DynamicServiceExecutor dynamicService = createService(); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(getName()); try { execute(dynamicService, msg); fail(); } catch (ServiceException expected) { expected.printStackTrace(); } }
private Service createService(AdaptrisMessage msg) throws Exception { try { return getServiceExtractor().getService(msg, currentMarshaller()); } catch (Exception e) { return onException(e); } }
DynamicServiceExecutor extends ServiceImp implements EventHandlerAware { private Service createService(AdaptrisMessage msg) throws Exception { try { return getServiceExtractor().getService(msg, currentMarshaller()); } catch (Exception e) { return onException(e); } } }
DynamicServiceExecutor extends ServiceImp implements EventHandlerAware { private Service createService(AdaptrisMessage msg) throws Exception { try { return getServiceExtractor().getService(msg, currentMarshaller()); } catch (Exception e) { return onException(e); } } DynamicServiceExecutor();  DynamicServiceExecutor(ServiceExtractor se); }
DynamicServiceExecutor extends ServiceImp implements EventHandlerAware { private Service createService(AdaptrisMessage msg) throws Exception { try { return getServiceExtractor().getService(msg, currentMarshaller()); } catch (Exception e) { return onException(e); } } DynamicServiceExecutor();  DynamicServiceExecutor(ServiceExtractor se); @Override void doService(AdaptrisMessage msg); @Override void start(); @Override void stop(); @Override void prepare(); @Override void registerEventHandler(EventHandler eh); ServiceExtractor getServiceExtractor(); void setServiceExtractor(ServiceExtractor s); AdaptrisMarshaller getMarshaller(); void setMarshaller(AdaptrisMarshaller m); Boolean getTreatNotFoundAsError(); void setTreatNotFoundAsError(Boolean b); }
DynamicServiceExecutor extends ServiceImp implements EventHandlerAware { private Service createService(AdaptrisMessage msg) throws Exception { try { return getServiceExtractor().getService(msg, currentMarshaller()); } catch (Exception e) { return onException(e); } } DynamicServiceExecutor();  DynamicServiceExecutor(ServiceExtractor se); @Override void doService(AdaptrisMessage msg); @Override void start(); @Override void stop(); @Override void prepare(); @Override void registerEventHandler(EventHandler eh); ServiceExtractor getServiceExtractor(); void setServiceExtractor(ServiceExtractor s); AdaptrisMarshaller getMarshaller(); void setMarshaller(AdaptrisMarshaller m); Boolean getTreatNotFoundAsError(); void setTreatNotFoundAsError(Boolean b);  }