CandlepinDTO implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof CandlepinDTO)) { return false; } CandlepinDTO that = (CandlepinDTO) obj; return this == that || ((this.created == that.created || (this.created != null && this.created.equals(that.created))) && (this.updated == that.updated || (this.updated != null && this.updated.equals(that.updated)))); } protected  CandlepinDTO(); protected  CandlepinDTO(Date created, Date updated); protected  CandlepinDTO(CandlepinDTO source); protected  CandlepinDTO(AbstractHibernateObject source); CandlepinDTO setCreated(Date created); Date getCreated(); CandlepinDTO setUpdated(Date updated); Date getUpdated(); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); CandlepinDTO populate(CandlepinDTO source); CandlepinDTO populate(AbstractHibernateObject source); static final long serialVersionUID; }
@Test public void testBaseEquality() { CandlepinDTO lhs = new CandlepinDTOImpl(); CandlepinDTO rhs = new CandlepinDTOImpl(); assertFalse(lhs.equals(null)); assertTrue(lhs.equals(lhs)); assertTrue(rhs.equals(rhs)); assertTrue(lhs.equals(rhs)); assertTrue(rhs.equals(lhs)); }