aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java')
-rw-r--r--src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java8
1 files changed, 8 insertions, 0 deletions
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 9709f7b9d..bc3ce272e 100644
--- a/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java
@@ -71,6 +71,7 @@ public class MethodUtilsTest extends AbstractLangTest {
}
private static final class GetMatchingMethodClass {
+
public void testMethod() {
}
@@ -686,6 +687,13 @@ public class MethodUtilsTest extends AbstractLangTest {
}
@Test
+ public void testGetMethodObject() throws Exception {
+ assertEquals(MutableObject.class.getMethod("getValue", ArrayUtils.EMPTY_CLASS_ARRAY),
+ MethodUtils.getMethodObject(MutableObject.class, "getValue", ArrayUtils.EMPTY_CLASS_ARRAY));
+ assertNull(MethodUtils.getMethodObject(MutableObject.class, "does not exist, at all", ArrayUtils.EMPTY_CLASS_ARRAY));
+ }
+
+ @Test
@Annotated
public void testGetMethodsListWithAnnotation() throws NoSuchMethodException {
assertEquals(0, MethodUtils.getMethodsListWithAnnotation(Object.class, Annotated.class).size());