ee3e080dc11ef39567381faadf149c88e7860ce3 |
|
12-Aug-2016 |
Neil Fuller <nfuller@google.com> |
Improved tests for repeated annotations Existing annotation tests have been moved into libcore.java.lang.reflect.annotations. Existing coverage has been extended to handle repeated annotation behavior to avoid regressions. There were previously some repeated annotation tests for classes in libcore.java.lang.reflect.AnnotationsTest and these have been replaced. Existing tests for non-repeated annotations have been retained but moved to new Class/Field/Constructor test classes. Shared utility code and annotation definitions has been moved to AnnotedElementTestSupport. AnnotationsTests and Annotations57649Test has been moved into the new package. AnnotationTests retains tests associated with the runtime-generated Annotation object (e.g. default values). AnnotationTest contained some tests that appear to have nothing to do with annotations. They have been moved to ReflectionTest with minimal de-duping for the isAnonymousClass() test. Note: AnnotationsTest.testRetentionPolicy() fails before and after the change. See bug 29500035. Bug: 27466777 Bug: 28666126 Test: cts run --class <All of the tests modified/added> Change-Id: I55416b68cf0cf5eb104015b3907e78f0b39c8ad5
|