@Test
public void isAnnotatedWith_type() {
assertThat(importClassWithContext(Parent.class).isAnnotatedWith(SomeAnnotation.class))
.as("Parent is annotated with @" + SomeAnnotation.class.getSimpleName()).isTrue();
assertThat(importClassWithContext(Parent.class).isAnnotatedWith(Retention.class))
.as("Parent is annotated with @" + Retention.class.getSimpleName()).isFalse();
}
JavaClassTest.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:ArchUnit
作者:
评论列表
文章目录