commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1390984 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Date Thu, 27 Sep 2012 13:01:58 GMT
Author: sebb
Date: Thu Sep 27 13:01:57 2012
New Revision: 1390984

URL: http://svn.apache.org/viewvc?rev=1390984&view=rev
Log:
LANG-820 TypeUtils.normalizeUpperBounds broken?
Added test to show it works OK

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java?rev=1390984&r1=1390983&r2=1390984&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Thu Sep 27 13:01:57 2012
@@ -655,6 +655,13 @@ public class TypeUtilsTest<B> {
         Assert.assertEquals(types[6], TypeUtils.getArrayComponentType(types[13]));
     }
 
+    @Test
+    public void testLang820() throws Exception {
+        Type[] typeArray = {String.class, String.class};
+        Type[] expectedArray = {String.class};
+        Assert.assertArrayEquals(expectedArray, TypeUtils.normalizeUpperBounds(typeArray));
+    }
+
     public Iterable<? extends Map<Integer, ? extends Collection<?>>> iterable;
 
     public static <G extends Comparable<G>> G stub() {



Mime
View raw message