@Test public void testStopAsyncShouldShutdownExecutor() { underTest.stopAsync(); verify(executorService).shutdown(); }
public void stopAsync() { executorService.execute(task); executorService.shutdown(); }
WebAppStopper { public void stopAsync() { executorService.execute(task); executorService.shutdown(); } }
WebAppStopper { public void stopAsync() { executorService.execute(task); executorService.shutdown(); } WebAppStopper(final WebAppServer webAppServer, final ExecutorService executorService); }
WebAppStopper { public void stopAsync() { executorService.execute(task); executorService.shutdown(); } WebAppStopper(final WebAppServer webAppServer, final ExecutorService executorService); void stopAsync(); }
WebAppStopper { public void stopAsync() { executorService.execute(task); executorService.shutdown(); } WebAppStopper(final WebAppServer webAppServer, final ExecutorService executorService); void stopAsync();  }