@Test public void overrideJudgment_DISSENTING_OPINIONS() { ConstitutionalTribunalJudgmentDissentingOpinion oldOpinion1 = createDissentingOpinion(Lists.newArrayList("Jan Kowalski", "Adam Nowak"), "abc"); ConstitutionalTribunalJudgmentDissentingOpinion oldOpinion2 = createDissentingOpinion(Lists.newArrayList("Jacek Zielinski"), "def"); ConstitutionalTribunalJudgmentDissentingOpinion oldOpinion3 = createDissentingOpinion(Lists.newArrayList("Katarzyna Kamińska"), "ghi"); ConstitutionalTribunalJudgmentDissentingOpinion oldOpinion4 = createDissentingOpinion(Lists.newArrayList("Stanisław Kowalski"), "jkl"); oldJudgment.addDissentingOpinion(oldOpinion1); oldJudgment.addDissentingOpinion(oldOpinion2); oldJudgment.addDissentingOpinion(oldOpinion3); oldJudgment.addDissentingOpinion(oldOpinion4); ConstitutionalTribunalJudgmentDissentingOpinion newOpinion1 = createDissentingOpinion(Lists.newArrayList("Jan Kowalski"), "abc"); ConstitutionalTribunalJudgmentDissentingOpinion newOpinion2 = createDissentingOpinion(Lists.newArrayList("Jacek Zieliński"), "def"); ConstitutionalTribunalJudgmentDissentingOpinion newOpinion3 = createDissentingOpinion(Lists.newArrayList("Katarzyna Kamińska"), "ghi"); newJudgment.addDissentingOpinion(newOpinion1); newJudgment.addDissentingOpinion(newOpinion2); newJudgment.addDissentingOpinion(newOpinion3); ctSpecificJudgmentOverwriter.overwriteJudgment(oldJudgment, newJudgment, correctionList); assertThat(newJudgment.getDissentingOpinions(), containsInAnyOrder(newOpinion1, newOpinion2, newOpinion3)); assertThat(oldJudgment.getDissentingOpinions(), containsInAnyOrder(newOpinion1, newOpinion2, oldOpinion3)); }
@Override public void overwriteJudgment(ConstitutionalTribunalJudgment oldJudgment, ConstitutionalTribunalJudgment newJudgment, ImportCorrectionList correctionList) { Preconditions.checkNotNull(oldJudgment); Preconditions.checkNotNull(newJudgment); overwriteDissentingOpinions(oldJudgment, newJudgment); }
CtSpecificJudgmentOverwriter implements JudgmentOverwriter<ConstitutionalTribunalJudgment> { @Override public void overwriteJudgment(ConstitutionalTribunalJudgment oldJudgment, ConstitutionalTribunalJudgment newJudgment, ImportCorrectionList correctionList) { Preconditions.checkNotNull(oldJudgment); Preconditions.checkNotNull(newJudgment); overwriteDissentingOpinions(oldJudgment, newJudgment); } }
CtSpecificJudgmentOverwriter implements JudgmentOverwriter<ConstitutionalTribunalJudgment> { @Override public void overwriteJudgment(ConstitutionalTribunalJudgment oldJudgment, ConstitutionalTribunalJudgment newJudgment, ImportCorrectionList correctionList) { Preconditions.checkNotNull(oldJudgment); Preconditions.checkNotNull(newJudgment); overwriteDissentingOpinions(oldJudgment, newJudgment); }  }
CtSpecificJudgmentOverwriter implements JudgmentOverwriter<ConstitutionalTribunalJudgment> { @Override public void overwriteJudgment(ConstitutionalTribunalJudgment oldJudgment, ConstitutionalTribunalJudgment newJudgment, ImportCorrectionList correctionList) { Preconditions.checkNotNull(oldJudgment); Preconditions.checkNotNull(newJudgment); overwriteDissentingOpinions(oldJudgment, newJudgment); }  @Override void overwriteJudgment(ConstitutionalTribunalJudgment oldJudgment,
            ConstitutionalTribunalJudgment newJudgment, ImportCorrectionList correctionList); }
CtSpecificJudgmentOverwriter implements JudgmentOverwriter<ConstitutionalTribunalJudgment> { @Override public void overwriteJudgment(ConstitutionalTribunalJudgment oldJudgment, ConstitutionalTribunalJudgment newJudgment, ImportCorrectionList correctionList) { Preconditions.checkNotNull(oldJudgment); Preconditions.checkNotNull(newJudgment); overwriteDissentingOpinions(oldJudgment, newJudgment); }  @Override void overwriteJudgment(ConstitutionalTribunalJudgment oldJudgment,
            ConstitutionalTribunalJudgment newJudgment, ImportCorrectionList correctionList);  }