@Test
public void testStaticWeaving() {
// first, scan for all files on the classpath with an @Entity or @MappedSuperClass annotation
Reflections reflections = new Reflections(getClass().getPackage().getName());
Set<Class<?>> entityTypes = reflections.getTypesAnnotatedWith(Entity.class, true);
Set<Class<?>> superTypes = reflections.getTypesAnnotatedWith(MappedSuperclass.class, true);
Set<Class<?>> embeddableTypes = reflections.getTypesAnnotatedWith(Embeddable.class, true);
// next, let's assert that they have been statically weaved
assertStaticWeaved(entityTypes, superTypes, embeddableTypes);
}
StaticWeavingTest.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:kc-rice
作者:
评论列表
文章目录