/** Test method for {@link org.gedcom4j.model.Trailer#hashCode()}. */ @Test public void testHashCode() { Trailer t1 = new Trailer(); Trailer t2 = new Trailer(); assertEquals( "Hashcodes for trailers are always equal - they have no properties", t1.hashCode(), t2.hashCode()); }
/** Test method for {@link org.gedcom4j.model.Trailer#equals(java.lang.Object)}. */ @Test public void testEqualsObject() { Trailer t1 = new Trailer(); assertEquals(t1, t1); Trailer t2 = new Trailer(); assertEquals("Hashcodes for trailers are always equal - they have no properties", t1, t2); assertFalse(t1.equals(null)); assertFalse(t1.equals(this)); }