From e6a1d017b1aeca6986c5e8486c9f8ce6360872d4 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Thu, 17 Nov 2011 23:58:31 +0000 Subject: [PATCH] [LANG-775] add failing test git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1203427 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/reflect/TypeUtilsTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java index c9042c4ff..986360a89 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java @@ -500,6 +500,11 @@ public class TypeUtilsTest { Assert.assertTrue(typeVarAssigns.size() == 2); Assert.assertEquals(String.class, typeVarAssigns.get(AAClass.class.getTypeParameters()[0])); Assert.assertEquals(String.class, typeVarAssigns.get(AAClass.BBClass.class.getTypeParameters()[0])); + + typeVarAssigns = TypeUtils.getTypeArguments(Other.class, This.class); + Assert.assertEquals(2, typeVarAssigns.size()); + Assert.assertEquals(String.class, typeVarAssigns.get(This.class.getTypeParameters()[0])); + Assert.assertEquals(Other.class.getTypeParameters()[0], typeVarAssigns.get(This.class.getTypeParameters()[1])); } @Test