(cherry picked from commit 9d365906b5)
This commit is contained in:
Sam Brannen
2026-04-06 16:53:12 +02:00
parent b2069e4c37
commit 9c82638820
@@ -65,7 +65,7 @@ class MethodAssertTests {
}
@Test
void haDeclaringClassWithWrongClass() {
void hasDeclaringClassWithWrongClass() {
Method method = ReflectionUtils.findMethod(TestData.class, "counter");
assertThatExceptionOfType(AssertionError.class)
.isThrownBy(() -> assertThat(method).hasDeclaringClass(Method.class))