Skip to content

Commit aa4806f

Browse files
committed
Add missing test coverage for
org.apache.commons.lang3.reflect.TypeUtils.determineTypeArguments(Class<?>, ParameterizedType)
1 parent d06e4a8 commit aa4806f

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
@@ -431,6 +431,7 @@ void testDeprecatedConstructor() {
431431
@Test
432432
void testDetermineTypeArguments() throws NoSuchFieldException {
433433
final ParameterizedType iterableType = (ParameterizedType) getClass().getField("iterable").getGenericType();
434+
assertNull(TypeUtils.determineTypeArguments(Object.class, iterableType));
434435
final Map<TypeVariable<?>, Type> typeVarAssigns = TypeUtils.determineTypeArguments(TreeSet.class, iterableType);
435436
final TypeVariable<?> treeSetTypeVar = TreeSet.class.getTypeParameters()[0];
436437
assertTrue(typeVarAssigns.containsKey(treeSetTypeVar));

0 commit comments

Comments
 (0)