@Test public void overwriteEnrichmentTags() { uploadEnrichmentTagOverwriter.overwriteEnrichmentTags(); verify(enrichmentTagRepository).deleteAllInBatch(); verify(uploadEnrichmentTagCopier).copyUploadedEnrichmentTags(); verifyZeroInteractions(uploadEnrichmentTagRepository); verifyNoMoreInteractions(enrichmentTagRepository, uploadEnrichmentTagCopier); }
@Transactional public void overwriteEnrichmentTags() { enrichmentTagRepository.deleteAllInBatch(); uploadEnrichmentTagCopier.copyUploadedEnrichmentTags(); }
UploadEnrichmentTagOverwriter { @Transactional public void overwriteEnrichmentTags() { enrichmentTagRepository.deleteAllInBatch(); uploadEnrichmentTagCopier.copyUploadedEnrichmentTags(); } }
UploadEnrichmentTagOverwriter { @Transactional public void overwriteEnrichmentTags() { enrichmentTagRepository.deleteAllInBatch(); uploadEnrichmentTagCopier.copyUploadedEnrichmentTags(); }  }
UploadEnrichmentTagOverwriter { @Transactional public void overwriteEnrichmentTags() { enrichmentTagRepository.deleteAllInBatch(); uploadEnrichmentTagCopier.copyUploadedEnrichmentTags(); }  boolean shouldEnrichmentTagsBeOverwritten(); @Transactional void overwriteEnrichmentTags(); @Autowired void setUploadEnrichmentTagRepository(UploadEnrichmentTagRepository uploadEnrichmentTagRepository); @Autowired void setEnrichmentTagRepository(EnrichmentTagRepository enrichmentTagRepository); @Autowired void setUploadEnrichmentTagCopier(UploadEnrichmentTagCopier uploadEnrichmentTagCopier); }
UploadEnrichmentTagOverwriter { @Transactional public void overwriteEnrichmentTags() { enrichmentTagRepository.deleteAllInBatch(); uploadEnrichmentTagCopier.copyUploadedEnrichmentTags(); }  boolean shouldEnrichmentTagsBeOverwritten(); @Transactional void overwriteEnrichmentTags(); @Autowired void setUploadEnrichmentTagRepository(UploadEnrichmentTagRepository uploadEnrichmentTagRepository); @Autowired void setEnrichmentTagRepository(EnrichmentTagRepository enrichmentTagRepository); @Autowired void setUploadEnrichmentTagCopier(UploadEnrichmentTagCopier uploadEnrichmentTagCopier);  }