commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1083503 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
Date Sun, 20 Mar 2011 16:58:56 GMT
Author: mbenson
Date: Sun Mar 20 16:58:55 2011
New Revision: 1083503

URL: http://svn.apache.org/viewvc?rev=1083503&view=rev
Log:
test tweaks

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

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java?rev=1083503&r1=1083502&r2=1083503&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
Sun Mar 20 16:58:55 2011
@@ -451,9 +451,14 @@ public class AnnotationUtilsTest {
             assertTrue(AnnotationUtils.isValidAnnotationMemberType(Array.newInstance(type,
0)
                     .getClass()));
         }
+        for (Class<?> type : new Class[] { Object.class, Map.class, Collection.class
}) {
+            assertFalse(AnnotationUtils.isValidAnnotationMemberType(type));
+            assertFalse(AnnotationUtils.isValidAnnotationMemberType(Array.newInstance(type,
0)
+                    .getClass()));
+        }
     }
 
-    @Test(timeout = 666)
+    @Test(timeout = 666000)
     public void testGeneratedAnnotationEquivalentToRealAnnotation() throws Exception {
         final Test real = getClass().getDeclaredMethod(
                 "testGeneratedAnnotationEquivalentToRealAnnotation").getAnnotation(Test.class);



Mime
View raw message