Home | History | Annotate | Download | only in annotations

Lines Matching refs:repeated

25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
38 Repeated.class.isAnnotationPresent(Inherited.class);
58 @Repeated(1)
61 @Repeated(1)
62 @Repeated(2)
65 @Container({@Repeated(1)})
68 @Repeated(1)
69 @Container({@Repeated(2), @Repeated(3)})
76 @Repeated(2)
79 @Repeated(2)
80 @Repeated(3)
83 @Repeated(2)
86 @Repeated(2)
87 @Repeated(3)
91 Class<Repeated> repeated = Repeated.class;
92 assertIsAnnotationPresent(NoAnnotation.class, repeated, false);
93 assertIsAnnotationPresent(SingleAnnotation.class, repeated, true);
94 assertIsAnnotationPresent(MultipleAnnotation.class, repeated, false);
95 assertIsAnnotationPresent(MultipleAnnotationExplicitSingle.class, repeated, false);
96 assertIsAnnotationPresent(MultipleAnnotationOddity.class, repeated, true);
97 assertIsAnnotationPresent(InheritedNoNewAnnotation.class, repeated, true);
98 assertIsAnnotationPresent(InheritedSingleWithNewSingleAnnotation.class, repeated, true);
99 assertIsAnnotationPresent(InheritedSingleWithNewMultipleAnnotations.class, repeated, true);
100 assertIsAnnotationPresent(InheritedMultipleWithNewSingleAnnotation.class, repeated, true);
101 assertIsAnnotationPresent(InheritedMultipleWithNewMultipleAnnotations.class, repeated,
105 assertIsAnnotationPresent(NoAnnotation.class, repeated, false);
119 Class<Repeated> repeated = Repeated.class;
120 assertGetDeclaredAnnotation(NoAnnotation.class, repeated, null);
121 assertGetDeclaredAnnotation(SingleAnnotation.class, repeated, "@Repeated(1)");
122 assertGetDeclaredAnnotation(MultipleAnnotation.class, repeated, null);
123 assertGetDeclaredAnnotation(MultipleAnnotationExplicitSingle.class, repeated, null);
124 assertGetDeclaredAnnotation(MultipleAnnotationOddity.class, repeated, "@Repeated(1)");
125 assertGetDeclaredAnnotation(InheritedNoNewAnnotation.class, repeated, null);
126 assertGetDeclaredAnnotation(InheritedSingleWithNewSingleAnnotation.class, repeated,
127 "@Repeated(2)");
128 assertGetDeclaredAnnotation(InheritedSingleWithNewMultipleAnnotations.class, repeated,
130 assertGetDeclaredAnnotation(InheritedMultipleWithNewSingleAnnotation.class, repeated,
131 "@Repeated(2)");
132 assertGetDeclaredAnnotation(InheritedMultipleWithNewMultipleAnnotations.class, repeated,
139 "@Container({@Repeated(1), @Repeated(2)})");
141 "@Container({@Repeated(1)})");
143 "@Container({@Repeated(2), @Repeated(3)})");
147 "@Container({@Repeated(2), @Repeated(3)})");
151 "@Container({@Repeated(2), @Repeated(3)})");
155 Class<Repeated> repeated = Repeated.class;
157 NoAnnotation.class, repeated, EXPECT_EMPTY);
159 SingleAnnotation.class, repeated, new String[] { "@Repeated(1)" });
161 MultipleAnnotation.class, repeated, new String[] { "@Repeated(1)", "@Repeated(2)" });
163 MultipleAnnotationExplicitSingle.class, repeated, new String[] { "@Repeated(1)" });
165 MultipleAnnotationOddity.class, repeated,
166 new String[] { "@Repeated(1)", "@Repeated(2)", "@Repeated(3)" });
168 InheritedNoNewAnnotation.class, repeated, EXPECT_EMPTY);
170 InheritedSingleWithNewSingleAnnotation.class, repeated,
171 new String[] { "@Repeated(2)" });
173 InheritedSingleWithNewMultipleAnnotations.class, repeated,
174 new String[] { "@Repeated(2)", "@Repeated(3)" });
176 InheritedMultipleWithNewSingleAnnotation.class, repeated,
177 new String[] { "@Repeated(2)" });
179 InheritedMultipleWithNewMultipleAnnotations.class, repeated,
180 new String[] { "@Repeated(2)", "@Repeated(3)" });
189 new String[] { "@Container({@Repeated(1), @Repeated(2)})" });
192 new String[] { "@Container({@Repeated(1)})" });
195 new String[] { "@Container({@Repeated(2), @Repeated(3)})" });
202 new String[] { "@Container({@Repeated(2), @Repeated(3)})" });
207 new String[] { "@Container({@Repeated(2), @Repeated(3)})" });
211 Class<Repeated> repeated = Repeated.class;
213 NoAnnotation.class, repeated, EXPECT_EMPTY);
215 SingleAnnotation.class, repeated, new String[] { "@Repeated(1)" });
217 MultipleAnnotation.class, repeated, new String[] { "@Repeated(1)", "@Repeated(2)" });
219 MultipleAnnotationExplicitSingle.class, repeated, new String[] { "@Repeated(1)" });
221 MultipleAnnotationOddity.class, repeated,
222 new String[] { "@Repeated(1)", "@Repeated(2)", "@Repeated(3)" });
224 InheritedNoNewAnnotation.class, repeated, new String[] { "@Repeated(1)" });
226 InheritedSingleWithNewSingleAnnotation.class, repeated,
227 new String[] { "@Repeated(2)" });
229 InheritedSingleWithNewMultipleAnnotations.class, repeated,
230 new String[] { "@Repeated(2)", "@Repeated(3)" });
232 InheritedMultipleWithNewSingleAnnotation.class, repeated,
233 new String[] { "@Repeated(2)" });
235 InheritedMultipleWithNewMultipleAnnotations.class, repeated,
236 new String[] { "@Repeated(2)", "@Repeated(3)" });
245 new String[] { "@Container({@Repeated(1), @Repeated(2)})" });
248 new String[] { "@Container({@Repeated(1)})" });
251 new String[] { "@Container({@Repeated(2), @Repeated(3)})" });
258 new String[] { "@Container({@Repeated(2), @Repeated(3)})" });
261 new String[] { "@Container({@Repeated(1), @Repeated(2)})" });
264 new String[] { "@Container({@Repeated(2), @Repeated(3)})" });