See gh-45592

Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
Johnny Lim
2025-05-17 20:56:57 +09:00
committed by Stéphane Nicoll
parent 2a66e46c0a
commit 0a54804a0f
14 changed files with 17 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ class FieldOriginTests {
Origin o2 = new FieldOrigin(ReflectionUtils.findField(Fields.class, "one"));
Origin o3 = new FieldOrigin(ReflectionUtils.findField(Fields.class, "two"));
assertThat(o1).isEqualTo(o1).isEqualTo(o2).isNotEqualTo(o3);
assertThat(o1.hashCode()).isEqualTo(o2.hashCode());
assertThat(o1).hasSameHashCodeAs(o2);
}
@Test