@Test @DisplayName("throw ISE on scheduling attempt when is shutdown") void throwExceptionIfIsShutdown() { scheduler.shutdown(); try { scheduler.schedule(Given.ACommand.createProject()); } catch (IllegalStateException expected) { return; } fail("Must throw an exception as it is shutdown."); }
@Override public void shutdown() { super.shutdown(); executorService.shutdown(); }
ExecutorCommandScheduler extends CommandScheduler implements Logging { @Override public void shutdown() { super.shutdown(); executorService.shutdown(); } }
ExecutorCommandScheduler extends CommandScheduler implements Logging { @Override public void shutdown() { super.shutdown(); executorService.shutdown(); } @VisibleForTesting  ExecutorCommandScheduler(ScheduledExecutorService executorService);  ExecutorCommandScheduler(); }
ExecutorCommandScheduler extends CommandScheduler implements Logging { @Override public void shutdown() { super.shutdown(); executorService.shutdown(); } @VisibleForTesting  ExecutorCommandScheduler(ScheduledExecutorService executorService);  ExecutorCommandScheduler(); @Override void shutdown(); }
ExecutorCommandScheduler extends CommandScheduler implements Logging { @Override public void shutdown() { super.shutdown(); executorService.shutdown(); } @VisibleForTesting  ExecutorCommandScheduler(ScheduledExecutorService executorService);  ExecutorCommandScheduler(); @Override void shutdown();  }