From fb173be6ce1d40d2f8c3ac38e73ec5231f50664f Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Sun, 20 Mar 2011 16:58:55 +0000 Subject: [PATCH] test tweaks git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083503 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/AnnotationUtilsTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java b/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java index 952c84579..0d45bc6a7 100644 --- a/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java @@ -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);