void function ( ) { SimpleTimePeriod loc0 = new SimpleTimePeriod ( new Date ( 10L ) , new Date ( 20L ) ) ; SimpleTimePeriod loc1 = new SimpleTimePeriod ( new Date ( 10L ) , new Date ( 20L ) ) ; assertTrue ( loc0 . equals ( loc1 ) ) ; int loc2 = loc0 . hashCode ( ) ; int loc3 = loc1 . hashCode ( ) ; assertEquals ( loc2 , loc3 ) ; }
two objects that are equal are required to return the same hashcode . concode_field_sep PlaceHolder placeHolder concode_field_sep void testEqualsSelf concode_elem_sep void testClone concode_elem_sep void testCompareTo concode_elem_sep void testImmutable concode_elem_sep void testSerialization concode_elem_sep void testEquals