super(name);
}
public void testToString() {
final AnnotationReader reader = AnnotationReader.getReaderFor(Target.METHOD.getDeclaringClass());
Annotation annotation = reader.getAnnotation("test.TestAnnotations$Complex", Target.METHOD);
assertEquals(
"@test.TestAnnotations$Complex(" +
"i=111, " +
"doubleArr=[1.1, 2.2, 3.3, 4.4], " +
"type=double[][][].class, " +
"enumeration=org.codehaus.backport175.reader.bytecode.AnnotationElement$Type.ANNOTATION, " +
"typeArr=[test.reader.Target[].class, test.reader.Target.class]" +
")",
annotation.toString()
);
}