Searched refs:annotations (Results 1 - 9 of 9) sorted by relevance

/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DAccessibleObjectTest.java157 Annotation[] annotations = ao.getAnnotations();
158 assertEquals(2, annotations.length);
161 ignoreOrder.add(annotations[0].annotationType());
162 ignoreOrder.add(annotations[1].annotationType());
172 Annotation[] annotations = ao.getDeclaredAnnotations();
173 assertEquals(2, annotations.length);
176 ignoreOrder.add(annotations[0].annotationType());
177 ignoreOrder.add(annotations[1].annotationType());
H A DConstructorTest.java112 assertEquals("Wrong number of annotations returned", 2,
129 Annotation[] annotations = ctor1.getDeclaredAnnotations();
130 assertEquals("Wrong number of annotations returned", 2,
131 annotations.length);
133 ignoreOrder.add(annotations[0].annotationType());
134 ignoreOrder.add(annotations[1].annotationType());
H A DMethodTest.java406 Annotation[][] annotations = method.getParameterAnnotations();
407 assertEquals(3, annotations.length);
409 "Wrong number of annotations returned for first parameter", 2,
410 annotations[0].length);
412 annotationSet.add(annotations[0][0].annotationType());
413 annotationSet.add(annotations[0][1].annotationType());
420 "Wrong number of annotations returned for second parameter",
421 1, annotations[1].length);
423 annotationSet.add(annotations[1][0].annotationType());
427 "Wrong number of annotations returne
[all...]
H A DFieldTest.java1761 Annotation[] annotations = field.getDeclaredAnnotations();
1762 assertEquals(2, annotations.length);
1765 ignoreOrder.add(annotations[0].annotationType());
1766 ignoreOrder.add(annotations[1].annotationType());
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTest.java36 Annotation [] annotations = AnnotatedClass.class.getDeclaredAnnotations();
37 assertEquals(1, annotations.length);
38 Annotation anno = annotations[0];
133 Annotation[][] annotations = c.getDeclaredMethod("test35304_method", parameterTypes).getParameterAnnotations();
134 assertEquals(2, annotations.length); // Two parameters.
135 assertEquals(0, annotations[0].length); // No annotations on the first.
136 assertEquals(1, annotations[1].length); // One annotation on the second.
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java242 Annotation [] annotations = PublicTestClass.class.getAnnotations();
243 assertEquals(1, annotations.length);
244 assertEquals(TestAnnotation.class, annotations[0].annotationType());
246 annotations = ExtendTestClass.class.getAnnotations();
247 assertEquals(2, annotations.length);
249 for(int i = 0; i < annotations.length; i++) {
250 Class<? extends Annotation> type = annotations[i].annotationType();
361 Annotation [] annotations = PublicTestClass.class.getDeclaredAnnotations();
362 assertEquals(1, annotations.length);
364 annotations
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DAnnotationsTest.java115 private Set<Class<? extends Annotation>> annotationsToTypes(Annotation[] annotations) { argument
117 for (Annotation annotation : annotations) {
/libcore/luni/src/main/java/java/lang/reflect/
H A DMethod.java295 Annotation[][] annotations = new Annotation[size][];
297 annotations[i] = NO_ANNOTATIONS;
299 return annotations;
303 * Returns an array of arrays that represent the annotations of the formal
305 * then an empty array is returned. If there are no annotations set, then
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...

Completed in 235 milliseconds