@Test public void removeReference() throws Exception { compositeTagJudgmentReferenceRemover.removeReferences(Lists.newArrayList(12L, 13L)); verify(tagJudgmentReferenceRemover1).removeReferences(Lists.newArrayList(12L, 13L)); verify(tagJudgmentReferenceRemover2).removeReferences(Lists.newArrayList(12L, 13L)); }
@Override public void removeReferences(List<Long> judgmentIds) { for (TagJudgmentReferenceRemover referenceRemover : tagJudgmentReferenceRemovers) { referenceRemover.removeReferences(judgmentIds); } }
CompositeTagJudgmentReferenceRemover implements TagJudgmentReferenceRemover { @Override public void removeReferences(List<Long> judgmentIds) { for (TagJudgmentReferenceRemover referenceRemover : tagJudgmentReferenceRemovers) { referenceRemover.removeReferences(judgmentIds); } } }
CompositeTagJudgmentReferenceRemover implements TagJudgmentReferenceRemover { @Override public void removeReferences(List<Long> judgmentIds) { for (TagJudgmentReferenceRemover referenceRemover : tagJudgmentReferenceRemovers) { referenceRemover.removeReferences(judgmentIds); } }  }
CompositeTagJudgmentReferenceRemover implements TagJudgmentReferenceRemover { @Override public void removeReferences(List<Long> judgmentIds) { for (TagJudgmentReferenceRemover referenceRemover : tagJudgmentReferenceRemovers) { referenceRemover.removeReferences(judgmentIds); } }  @Override void removeReferences(List<Long> judgmentIds); @Autowired void setTagJudgmentReferenceRemovers(List<TagJudgmentReferenceRemover> judgmentReferenceRemovers); }
CompositeTagJudgmentReferenceRemover implements TagJudgmentReferenceRemover { @Override public void removeReferences(List<Long> judgmentIds) { for (TagJudgmentReferenceRemover referenceRemover : tagJudgmentReferenceRemovers) { referenceRemover.removeReferences(judgmentIds); } }  @Override void removeReferences(List<Long> judgmentIds); @Autowired void setTagJudgmentReferenceRemovers(List<TagJudgmentReferenceRemover> judgmentReferenceRemovers);  }