This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new a5314fc71 Add test from 
https://github.com/apache/commons-lang/commit/527f106dd1a547a7a2603df5711b937b8895deed#commitcomment-170208120
a5314fc71 is described below

commit a5314fc71808ff0d3cbcb62fecdb326d662e80ca
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Nov 10 20:08:58 2025 +0000

    Add test from
    
https://github.com/apache/commons-lang/commit/527f106dd1a547a7a2603df5711b937b8895deed#commitcomment-170208120
---
 src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
index 3ab33c5fd..4724555eb 100644
--- a/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
@@ -1104,6 +1104,7 @@ void testInvokeMethod() throws Exception {
         TestBean.verify(new ImmutablePair<>("Number...", new Number[] { 17, 
23, 42 }), MethodUtils.invokeMethod(testBean, "varOverloadEcho", 17, 23, 42));
         assertNullPointerException(() -> MethodUtils.invokeMethod(null, "foo", 
1, 2));
         assertThrows(NoSuchMethodException.class, () -> 
MethodUtils.invokeMethod(testBean, null, 1, 2));
+        assertThrows(NoSuchMethodException.class, () -> 
MethodUtils.invokeMethod(new Object(), "nonExistent", new Object[] { "val" }, 
new Class<?>[] { null }));
     }
 
     @Test

Reply via email to