コード例 #1
0
 @Test
 public void testHashCodeSameForEqualInstances() {
   assertEquals(HASH_CODE_MUST_BE_SAME, built.hashCode(), builder.build().hashCode());
 }
コード例 #2
0
 @Test
 public void testToStringSameForEqualInstances() {
   assertEquals(TO_STRING_MUST_BE_SAME, built.toString(), builder.build().toString());
 }
コード例 #3
0
 @Test
 public void testEqualToSameProperties() {
   assertEquals(EQUAL_TO_INSTANCE_WITH_SAME_VALUES, built, builder.build());
 }