@Test public void testDoService_NoService() throws Exception { DynamicSharedService sharedService = new DynamicSharedService(getName()); Adapter adapter = createAdapterForSharedService(sharedService); try { LifecycleHelper.initAndStart(adapter); AdaptrisMessage msg = DefaultMessageFactory.getDefaultInstance().newMessage(); sharedService.doService(msg); fail(); } catch (ServiceException expected) { } finally { LifecycleHelper.stopAndClose(adapter); } }
@Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } DynamicSharedService();  DynamicSharedService(String lookupName); }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } DynamicSharedService();  DynamicSharedService(String lookupName); @Override void init(); @Override void start(); @Override void stop(); @Override void close(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); @Override boolean isBranching(); Integer getMaxEntries(); void setMaxEntries(Integer maxEntries); T withMaxEntries(Integer i); TimeInterval getExpiration(); void setExpiration(TimeInterval expiration); T withExpiration(TimeInterval i); }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } DynamicSharedService();  DynamicSharedService(String lookupName); @Override void init(); @Override void start(); @Override void stop(); @Override void close(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); @Override boolean isBranching(); Integer getMaxEntries(); void setMaxEntries(Integer maxEntries); T withMaxEntries(Integer i); TimeInterval getExpiration(); void setExpiration(TimeInterval expiration); T withExpiration(TimeInterval i);  }