Lines 6918-6924
Link Here
|
6918 |
IAnnotationBinding annotationBinding = annotation.resolveAnnotationBinding(); |
6918 |
IAnnotationBinding annotationBinding = annotation.resolveAnnotationBinding(); |
6919 |
assertNotNull("No binding", annotationBinding); |
6919 |
assertNotNull("No binding", annotationBinding); |
6920 |
assertEquals("LX;.fXoo)I@LTest;", annotationBinding.getKey()); |
6920 |
assertEquals("LX;.fXoo)I@LTest;", annotationBinding.getKey()); |
6921 |
assertFalse("Annotation should not be flagged as recovered", annotationBinding.isRecovered()); |
6921 |
assertTrue("Annotation should not flagged as recovered", annotationBinding.isRecovered()); |
6922 |
assertTrue("Annotation type should be flagged as recovered", annotationBinding.getAnnotationType().isRecovered()); |
6922 |
assertTrue("Annotation type should be flagged as recovered", annotationBinding.getAnnotationType().isRecovered()); |
6923 |
} |
6923 |
} |
6924 |
/* |
6924 |
/* |
Lines 7096-7102
Link Here
|
7096 |
assertEquals("Wrong size", 1, annotations.length); |
7096 |
assertEquals("Wrong size", 1, annotations.length); |
7097 |
assertNotNull("No binding", annotations[0]); |
7097 |
assertNotNull("No binding", annotations[0]); |
7098 |
assertEquals("LX;.foo()V@LZork;", annotations[0].getKey()); |
7098 |
assertEquals("LX;.foo()V@LZork;", annotations[0].getKey()); |
7099 |
assertFalse("Annotation should not be flagged as recovered", annotations[0].isRecovered()); |
7099 |
assertTrue("Annotation should be flagged as recovered", annotations[0].isRecovered()); |
7100 |
assertTrue("Annotation type should be flagged as recovered", annotations[0].getAnnotationType().isRecovered()); |
7100 |
assertTrue("Annotation type should be flagged as recovered", annotations[0].getAnnotationType().isRecovered()); |
7101 |
} |
7101 |
} |
7102 |
/* |
7102 |
/* |
Lines 7123-7129
Link Here
|
7123 |
assertEquals("Wrong size", 1, annotations.length); |
7123 |
assertEquals("Wrong size", 1, annotations.length); |
7124 |
assertNotNull("No binding", annotations[0]); |
7124 |
assertNotNull("No binding", annotations[0]); |
7125 |
assertEquals("LX;@LZork;", annotations[0].getKey()); |
7125 |
assertEquals("LX;@LZork;", annotations[0].getKey()); |
7126 |
assertFalse("Annotation should not be flagged as recovered", annotations[0].isRecovered()); |
7126 |
assertTrue("Annotation should be flagged as recovered", annotations[0].isRecovered()); |
7127 |
assertTrue("Annotation type should be flagged as recovered", annotations[0].getAnnotationType().isRecovered()); |
7127 |
assertTrue("Annotation type should be flagged as recovered", annotations[0].getAnnotationType().isRecovered()); |
7128 |
} |
7128 |
} |
7129 |
/* |
7129 |
/* |
Lines 7154-7160
Link Here
|
7154 |
assertEquals("Wrong size", 1, bindings.length); |
7154 |
assertEquals("Wrong size", 1, bindings.length); |
7155 |
assertNotNull("No binding", bindings[0]); |
7155 |
assertNotNull("No binding", bindings[0]); |
7156 |
assertEquals("@LZork;", bindings[0].getKey()); |
7156 |
assertEquals("@LZork;", bindings[0].getKey()); |
7157 |
assertFalse("Annotation should not be flagged as recovered", bindings[0].isRecovered()); |
7157 |
assertTrue("Annotation should be flagged as recovered", bindings[0].isRecovered()); |
7158 |
assertTrue("Annotation type should be flagged as recovered", bindings[0].getAnnotationType().isRecovered()); |
7158 |
assertTrue("Annotation type should be flagged as recovered", bindings[0].getAnnotationType().isRecovered()); |
7159 |
} |
7159 |
} |
7160 |
/* |
7160 |
/* |
Lines 9373-9379
Link Here
|
9373 |
IAnnotationBinding[] annotations = typeBinding.getAnnotations(); |
9373 |
IAnnotationBinding[] annotations = typeBinding.getAnnotations(); |
9374 |
assertEquals("wrong size", 2, annotations.length); |
9374 |
assertEquals("wrong size", 2, annotations.length); |
9375 |
assertEquals("LX;@LInvalid;", annotations[0].getKey()); |
9375 |
assertEquals("LX;@LInvalid;", annotations[0].getKey()); |
9376 |
assertFalse("Annotation should not be flagged as recovered", annotations[0].isRecovered()); |
9376 |
assertTrue("Annotation should be flagged as recovered", annotations[0].isRecovered()); |
9377 |
assertTrue("Annotation type should be flagged as recovered", annotations[0].getAnnotationType().isRecovered()); |
9377 |
assertTrue("Annotation type should be flagged as recovered", annotations[0].getAnnotationType().isRecovered()); |
9378 |
assertEquals("LX;@Ljava/lang/Deprecated;", annotations[1].getKey()); |
9378 |
assertEquals("LX;@Ljava/lang/Deprecated;", annotations[1].getKey()); |
9379 |
} |
9379 |
} |