@Test public void delete_SINGLE_BY_ID() { Judgment ccJudgment = testPersistenceObjectFactory.createCcJudgment(); Judgment scJudgment = testPersistenceObjectFactory.createScJudgment(); testPersistenceObjectFactory.createEnrichmentTagsForJudgment(ccJudgment.getId()); EnrichmentTag referenceTag = testPersistenceObjectFactory.createReferencedCourtCasesTag(scJudgment.getId(), ccJudgment); judgmentWithEnrichmentDeleter.delete(ccJudgment.getId()); assertFalse(judgmentRepository.exists(ccJudgment.getId())); assertEquals(0, enrichmentTagRepository.findAllByJudgmentId(ccJudgment.getId()).size()); assertEnrichmentTagValue(referenceTag.getId(), normalizeJson("[{'caseNumber':'"+ccJudgment.getCaseNumbers().get(0)+"','judgmentIds':[]}]")); }
@Transactional public void delete(List<Long> judgmentIds) { judgmentRepository.delete(judgmentIds); deleteEnrichmentTags(judgmentIds); tagJudgmentReferenceRemover.removeReferences(judgmentIds); }
JudgmentWithEnrichmentDeleter { @Transactional public void delete(List<Long> judgmentIds) { judgmentRepository.delete(judgmentIds); deleteEnrichmentTags(judgmentIds); tagJudgmentReferenceRemover.removeReferences(judgmentIds); } }
JudgmentWithEnrichmentDeleter { @Transactional public void delete(List<Long> judgmentIds) { judgmentRepository.delete(judgmentIds); deleteEnrichmentTags(judgmentIds); tagJudgmentReferenceRemover.removeReferences(judgmentIds); }  }
JudgmentWithEnrichmentDeleter { @Transactional public void delete(List<Long> judgmentIds) { judgmentRepository.delete(judgmentIds); deleteEnrichmentTags(judgmentIds); tagJudgmentReferenceRemover.removeReferences(judgmentIds); }  @Transactional void delete(List<Long> judgmentIds); @Transactional void delete(Judgment judgment); @Transactional void delete(Long judgmentId); }
JudgmentWithEnrichmentDeleter { @Transactional public void delete(List<Long> judgmentIds) { judgmentRepository.delete(judgmentIds); deleteEnrichmentTags(judgmentIds); tagJudgmentReferenceRemover.removeReferences(judgmentIds); }  @Transactional void delete(List<Long> judgmentIds); @Transactional void delete(Judgment judgment); @Transactional void delete(Long judgmentId);  }