@Test public void addScChamber() { assertEquals(0, scJudgment.getScChambers().size()); scJudgment.addScChamber(scChamberABC); assertEquals(1, scJudgment.getScChambers().size()); assertTrue(scChamberABC == scJudgment.getScChambers().get(0)); }
public void addScChamber(SupremeCourtChamber scChamber) { Preconditions.checkArgument(!containsScChamber(scChamber)); scChambers.add(scChamber); }
SupremeCourtJudgment extends Judgment { public void addScChamber(SupremeCourtChamber scChamber) { Preconditions.checkArgument(!containsScChamber(scChamber)); scChambers.add(scChamber); } }
SupremeCourtJudgment extends Judgment { public void addScChamber(SupremeCourtChamber scChamber) { Preconditions.checkArgument(!containsScChamber(scChamber)); scChambers.add(scChamber); }  }
SupremeCourtJudgment extends Judgment { public void addScChamber(SupremeCourtChamber scChamber) { Preconditions.checkArgument(!containsScChamber(scChamber)); scChambers.add(scChamber); }  @ManyToOne SupremeCourtJudgmentForm getScJudgmentForm(); @Enumerated(EnumType.STRING) PersonnelType getPersonnelType(); @ManyToOne SupremeCourtChamberDivision getScChamberDivision(); @Transient List<SupremeCourtChamber> getScChambers(); @Transient @Override CourtType getCourtType(); boolean containsScChamber(SupremeCourtChamber scChamber); void addScChamber(SupremeCourtChamber scChamber); void removeScChamber(SupremeCourtChamber scChamber); void setScJudgmentForm(SupremeCourtJudgmentForm scJudgmentForm); void setPersonnelType(PersonnelType personnelType); void setScChamberDivision(SupremeCourtChamberDivision scChamberDivision); }
SupremeCourtJudgment extends Judgment { public void addScChamber(SupremeCourtChamber scChamber) { Preconditions.checkArgument(!containsScChamber(scChamber)); scChambers.add(scChamber); }  @ManyToOne SupremeCourtJudgmentForm getScJudgmentForm(); @Enumerated(EnumType.STRING) PersonnelType getPersonnelType(); @ManyToOne SupremeCourtChamberDivision getScChamberDivision(); @Transient List<SupremeCourtChamber> getScChambers(); @Transient @Override CourtType getCourtType(); boolean containsScChamber(SupremeCourtChamber scChamber); void addScChamber(SupremeCourtChamber scChamber); void removeScChamber(SupremeCourtChamber scChamber); void setScJudgmentForm(SupremeCourtJudgmentForm scJudgmentForm); void setPersonnelType(PersonnelType personnelType); void setScChamberDivision(SupremeCourtChamberDivision scChamberDivision);  }