/**
*
*/
public void test_getAnnotation_Cla() {
class e {};
assertNull("zzz annotation is not presented in e class!",
e.class.getAnnotation(zzz.class));
assertNull("zzz annotation is not presented in zzz class!",
zzz.class.getAnnotation(zzz.class));
assertFalse("Target annotation is presented in zzz class!",
zzz.class.getAnnotation(java.lang.annotation.Target.class)
.toString().indexOf("java.lang.annotation.Target") == -1);
assertFalse("Documented annotation is presented in zzz class!",
zzz.class.getAnnotation(java.lang.annotation.Documented.class)
.toString().indexOf("java.lang.annotation.Documented") == -1);
assertFalse("Retention annotation is presented in zzz class!",
zzz.class.getAnnotation(java.lang.annotation.Retention.class)
.toString().indexOf("java.lang.annotation.Retention") == -1);
}
Class1_5Test.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录