@Test public void doNotCreateTaskIfAlreadyExists() throws Exception { when(taskScheduler.listsTasks()).thenReturn(ImmutableList.of(taskInfo)); underTest.doStart(); verify(taskScheduler, never()).scheduleTask(any(), any()); }
@Override protected void doStart() { createCleanupTask(); }
CleanupBootService extends LifecycleSupport { @Override protected void doStart() { createCleanupTask(); } }
CleanupBootService extends LifecycleSupport { @Override protected void doStart() { createCleanupTask(); } @Inject  CleanupBootService(final TaskScheduler taskScheduler); }
CleanupBootService extends LifecycleSupport { @Override protected void doStart() { createCleanupTask(); } @Inject  CleanupBootService(final TaskScheduler taskScheduler);  }
CleanupBootService extends LifecycleSupport { @Override protected void doStart() { createCleanupTask(); } @Inject  CleanupBootService(final TaskScheduler taskScheduler);   }