@Test public void testDefaultResourceSnapshotResolver$registerShutdownListener(@Mocked final ShutdownListener listener) throws Exception { try { sut().registerShutdownListener(listener); fail("Operation should fail"); } catch (ApplicationApiRuntimeException e) { assertThat(e.getMessage(),equalTo("No runtime delegate found")); } }
public abstract void registerShutdownListener(ShutdownListener listener);
RuntimeDelegate { public abstract void registerShutdownListener(ShutdownListener listener); }
RuntimeDelegate { public abstract void registerShutdownListener(ShutdownListener listener); protected  RuntimeDelegate(); }
RuntimeDelegate { public abstract void registerShutdownListener(ShutdownListener listener); protected  RuntimeDelegate(); static RuntimeDelegate getInstance(); static void setInstance(final RuntimeDelegate delegate); abstract boolean isOffline(); abstract WriteSession createSession(); abstract ResourceSnapshotResolver createResourceResolver(URI canonicalBase, ReadSession session); abstract void registerShutdownListener(ShutdownListener listener); }
RuntimeDelegate { public abstract void registerShutdownListener(ShutdownListener listener); protected  RuntimeDelegate(); static RuntimeDelegate getInstance(); static void setInstance(final RuntimeDelegate delegate); abstract boolean isOffline(); abstract WriteSession createSession(); abstract ResourceSnapshotResolver createResourceResolver(URI canonicalBase, ReadSession session); abstract void registerShutdownListener(ShutdownListener listener); static final String APPLICATION_ENGINE_SPI_FINDER; static final String APPLICATION_ENGINE_SPI_CFG; static final String APPLICATION_ENGINE_SPI_PROPERTY; }