@Test public void doStartRemovedOldTasks() throws Exception { TaskInfo existingTask = createMockTaskInfo(RebuildAssetUploadMetadataTaskDescriptor.TYPE_ID); when(taskScheduler.listsTasks()).thenReturn(asList(existingTask)); manager.doStart(); verify(existingTask).remove(); }
@Override protected void doStart() { removeOldRebuildTasks(); }
RebuildAssetUploadMetadataTaskManager extends LifecycleSupport { @Override protected void doStart() { removeOldRebuildTasks(); } }
RebuildAssetUploadMetadataTaskManager extends LifecycleSupport { @Override protected void doStart() { removeOldRebuildTasks(); } @Inject  RebuildAssetUploadMetadataTaskManager(final TaskScheduler taskScheduler); }
RebuildAssetUploadMetadataTaskManager extends LifecycleSupport { @Override protected void doStart() { removeOldRebuildTasks(); } @Inject  RebuildAssetUploadMetadataTaskManager(final TaskScheduler taskScheduler);  }
RebuildAssetUploadMetadataTaskManager extends LifecycleSupport { @Override protected void doStart() { removeOldRebuildTasks(); } @Inject  RebuildAssetUploadMetadataTaskManager(final TaskScheduler taskScheduler);   }