@Test public void containsAuthor() { assertTrue(dissentingOpinion.containsAuthor(AUTHORS[0])); assertTrue(dissentingOpinion.containsAuthor(AUTHORS[1])); assertTrue(dissentingOpinion.containsAuthor(AUTHORS[2])); assertFalse(dissentingOpinion.containsAuthor(AUTHOR_NOT_EXIST)); }
public boolean containsAuthor(String author) { return this.authors.contains(author); }
ConstitutionalTribunalJudgmentDissentingOpinion extends DataObject { public boolean containsAuthor(String author) { return this.authors.contains(author); } }
ConstitutionalTribunalJudgmentDissentingOpinion extends DataObject { public boolean containsAuthor(String author) { return this.authors.contains(author); }  }
ConstitutionalTribunalJudgmentDissentingOpinion extends DataObject { public boolean containsAuthor(String author) { return this.authors.contains(author); }  @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_ctj_opinion") @Override long getId(); @ManyToOne(fetch=FetchType.LAZY) Judgment getJudgment(); String getTextContent(); @Transient List<String> getAuthors(); void addAuthor(String author); boolean containsAuthor(String author); void removeAuthor(String author); void setJudgment(Judgment judgment); void setTextContent(String textContent); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ConstitutionalTribunalJudgmentDissentingOpinion extends DataObject { public boolean containsAuthor(String author) { return this.authors.contains(author); }  @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_ctj_opinion") @Override long getId(); @ManyToOne(fetch=FetchType.LAZY) Judgment getJudgment(); String getTextContent(); @Transient List<String> getAuthors(); void addAuthor(String author); boolean containsAuthor(String author); void removeAuthor(String author); void setJudgment(Judgment judgment); void setTextContent(String textContent); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }