Skip to content

Commit d82b065

Browse files
committed
Add missing test coverage for
org.apache.commons.lang3.reflect.TypeUtils.isInstance(Object, Type)
1 parent 161e5d7 commit d82b065

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,7 @@ void testIsAssignableGenericListTypes() throws NoSuchFieldException {
930930
@SuppressWarnings("boxing") // boxing is deliberate here
931931
@Test
932932
void testIsInstance() throws NoSuchFieldException {
933+
assertFalse(TypeUtils.isInstance(1, null));
933934
final Type intComparableType = getClass().getField("intComparable").getGenericType();
934935
final Type uriComparableType = getClass().getField("uriComparable").getGenericType();
935936
assertTrue(TypeUtils.isInstance(1, intComparableType));

0 commit comments

Comments
 (0)