@Test public void overrideJudgment_scChambers() { SupremeCourtChamber oldScChamber1 = new SupremeCourtChamber(); oldScChamber1.setName("ABC"); SupremeCourtChamber oldScChamber2 = new SupremeCourtChamber(); oldScChamber2.setName("DEF"); oldJudgment.addScChamber(oldScChamber1); oldJudgment.addScChamber(oldScChamber2); SupremeCourtChamber newScChamber1 = new SupremeCourtChamber(); newScChamber1.setName("ABC"); SupremeCourtChamber newScChamber2 = new SupremeCourtChamber(); newScChamber2.setName("EFG"); newJudgment.addScChamber(newScChamber1); newJudgment.addScChamber(newScChamber2); scSpecificJudgmentOverwriter.overwriteJudgment(oldJudgment, newJudgment, correctionList); assertThat(newJudgment.getScChambers(), Matchers.containsInAnyOrder(newScChamber1, newScChamber2)); assertThat(oldJudgment.getScChambers(), Matchers.containsInAnyOrder(oldScChamber1, newScChamber2)); }
@Override public void overwriteJudgment(SupremeCourtJudgment oldJudgment, SupremeCourtJudgment newJudgment, ImportCorrectionList correctionList) { overwriteScChambers(oldJudgment, newJudgment); overwriteScChamberDivision(oldJudgment, newJudgment); overwritePersonnelType(oldJudgment, newJudgment); overwriteScJudgmentForm(oldJudgment, newJudgment); }
ScSpecificJudgmentOverwriter implements JudgmentOverwriter<SupremeCourtJudgment> { @Override public void overwriteJudgment(SupremeCourtJudgment oldJudgment, SupremeCourtJudgment newJudgment, ImportCorrectionList correctionList) { overwriteScChambers(oldJudgment, newJudgment); overwriteScChamberDivision(oldJudgment, newJudgment); overwritePersonnelType(oldJudgment, newJudgment); overwriteScJudgmentForm(oldJudgment, newJudgment); } }
ScSpecificJudgmentOverwriter implements JudgmentOverwriter<SupremeCourtJudgment> { @Override public void overwriteJudgment(SupremeCourtJudgment oldJudgment, SupremeCourtJudgment newJudgment, ImportCorrectionList correctionList) { overwriteScChambers(oldJudgment, newJudgment); overwriteScChamberDivision(oldJudgment, newJudgment); overwritePersonnelType(oldJudgment, newJudgment); overwriteScJudgmentForm(oldJudgment, newJudgment); }  }
ScSpecificJudgmentOverwriter implements JudgmentOverwriter<SupremeCourtJudgment> { @Override public void overwriteJudgment(SupremeCourtJudgment oldJudgment, SupremeCourtJudgment newJudgment, ImportCorrectionList correctionList) { overwriteScChambers(oldJudgment, newJudgment); overwriteScChamberDivision(oldJudgment, newJudgment); overwritePersonnelType(oldJudgment, newJudgment); overwriteScJudgmentForm(oldJudgment, newJudgment); }  @Override void overwriteJudgment(SupremeCourtJudgment oldJudgment, SupremeCourtJudgment newJudgment, ImportCorrectionList correctionList); }
ScSpecificJudgmentOverwriter implements JudgmentOverwriter<SupremeCourtJudgment> { @Override public void overwriteJudgment(SupremeCourtJudgment oldJudgment, SupremeCourtJudgment newJudgment, ImportCorrectionList correctionList) { overwriteScChambers(oldJudgment, newJudgment); overwriteScChamberDivision(oldJudgment, newJudgment); overwritePersonnelType(oldJudgment, newJudgment); overwriteScJudgmentForm(oldJudgment, newJudgment); }  @Override void overwriteJudgment(SupremeCourtJudgment oldJudgment, SupremeCourtJudgment newJudgment, ImportCorrectionList correctionList);  }