Skip to content

Commit a5314fc

Browse files
committed
1 parent 52d1b7b commit a5314fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ void testInvokeMethod() throws Exception {
11041104
TestBean.verify(new ImmutablePair<>("Number...", new Number[] { 17, 23, 42 }), MethodUtils.invokeMethod(testBean, "varOverloadEcho", 17, 23, 42));
11051105
assertNullPointerException(() -> MethodUtils.invokeMethod(null, "foo", 1, 2));
11061106
assertThrows(NoSuchMethodException.class, () -> MethodUtils.invokeMethod(testBean, null, 1, 2));
1107+
assertThrows(NoSuchMethodException.class, () -> MethodUtils.invokeMethod(new Object(), "nonExistent", new Object[] { "val" }, new Class<?>[] { null }));
11071108
}
11081109

11091110
@Test

0 commit comments

Comments
 (0)