@Test public void processUploadedEnrichmentTags_enrichmentTagsShouldBeOverwritten() throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException, NoSuchJobException { when(uploadEnrichmentTagOverwriter.shouldEnrichmentTagsBeOverwritten()).thenReturn(true); uploadEnrichmentTagProcessor.processUploadedEnrichmentTags(); verify(uploadEnrichmentTagOverwriter).overwriteEnrichmentTags(); verify(jobForcingExecutor).forceStartNewJob(JobName.TAG_POST_UPLOAD_PROCESSING); verifyNoMoreInteractions(uploadEnrichmentTagOverwriter, jobForcingExecutor); }
public void processUploadedEnrichmentTags() { uploadEnrichmentTagOverwriter.overwriteEnrichmentTags(); runTagPostUploadProcessingJob(); }
UploadEnrichmentTagProcessor { public void processUploadedEnrichmentTags() { uploadEnrichmentTagOverwriter.overwriteEnrichmentTags(); runTagPostUploadProcessingJob(); } }
UploadEnrichmentTagProcessor { public void processUploadedEnrichmentTags() { uploadEnrichmentTagOverwriter.overwriteEnrichmentTags(); runTagPostUploadProcessingJob(); }  }
UploadEnrichmentTagProcessor { public void processUploadedEnrichmentTags() { uploadEnrichmentTagOverwriter.overwriteEnrichmentTags(); runTagPostUploadProcessingJob(); }  void processUploadedEnrichmentTags(); @Autowired void setUploadEnrichmentTagOverwriter(UploadEnrichmentTagOverwriter uploadEnrichmentTagOverwriter); @Autowired void setJobExecutor(JobForcingExecutor jobExecutor); }
UploadEnrichmentTagProcessor { public void processUploadedEnrichmentTags() { uploadEnrichmentTagOverwriter.overwriteEnrichmentTags(); runTagPostUploadProcessingJob(); }  void processUploadedEnrichmentTags(); @Autowired void setUploadEnrichmentTagOverwriter(UploadEnrichmentTagOverwriter uploadEnrichmentTagOverwriter); @Autowired void setJobExecutor(JobForcingExecutor jobExecutor);  }