use of org.jboss.shrinkwrap.api.BeanArchive in project core by weld.
the class DuplicateInterceptorTest method deploy.
@Deployment
public static Archive<?> deploy() {
Archive jar = ShrinkWrap.create(JavaArchive.class).addClasses(MySuperClass.class);
Archive beanArchive = ShrinkWrap.create(BeanArchive.class).intercept(MyInterceptor.class).addClasses(MyObject.class, MyManagedBean.class, MyInterceptor.class, MyInterceptorBinding.class, MyStereotype.class);
return ShrinkWrap.create(WebArchive.class, Utils.getDeploymentNameAsHash(DuplicateInterceptorTest.class, Utils.ARCHIVE_TYPE.WAR)).addAsLibraries(jar, beanArchive);
}
Aggregations