test tweaks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b39944f756
commit
fb173be6ce
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue