@Test public void overrideJudgment_scJudgmentForm() { SupremeCourtJudgmentForm oldScJudgmentForm = new SupremeCourtJudgmentForm(); oldScJudgmentForm.setName("ABC"); oldJudgment.setScJudgmentForm(oldScJudgmentForm); SupremeCourtJudgmentForm newScJudgmentForm = new SupremeCourtJudgmentForm(); oldScJudgmentForm.setName("DEF"); newJudgment.setScJudgmentForm(newScJudgmentForm); scSpecificJudgmentOverwriter.overwriteJudgment(oldJudgment, newJudgment, correctionList); assertTrue(newScJudgmentForm == newJudgment.getScJudgmentForm()); assertTrue(newScJudgmentForm == oldJudgment.getScJudgmentForm()); }
@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);  }