mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user