@Test
public void shouldBeEqualToRealAnnotationWithArrayValues() throws Exception {
Map<String, Object> values = new HashMap<>();
values.put("value", new ElementType[] {ElementType.TYPE, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.METHOD});
Target target = AnnotationFactory.create(Target.class, values);
Target real = TestAnnotation.class.getAnnotation(Target.class);
assertThat(target).isInstanceOf(Target.class);
assertThat(target).isEqualTo(real);
assertThat(target.hashCode()).isEqualTo(real.hashCode());
}
AnnotationFactoryTest.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:booter-injector
作者:
评论列表
文章目录