@Test public void destroysServerOnFailureToStop() throws IOException { expectServerDestroy(); lifecyclePolicy.failedToStop(server, IGNORED_CAUSE); }
@Test public void providesShutdownHookProcessDestroyer() { assertThat( lifecyclePolicy.getProcessDestroyer(), is(instanceOf(ShutdownHookProcessDestroyer.class))); }
@Test public void destroysServerOnFailureToStart() { expectServerDestroy(); lifecyclePolicy.failedToStart(server); }