Search in sources :

Example 6 with BeanArchive

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);
}
Also used : BeanArchive(org.jboss.shrinkwrap.api.BeanArchive) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Archive(org.jboss.shrinkwrap.api.Archive) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)6 BeanArchive (org.jboss.shrinkwrap.api.BeanArchive)6 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)5 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)3 ShouldThrowException (org.jboss.arquillian.container.test.api.ShouldThrowException)2 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)2 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)1 Archive (org.jboss.shrinkwrap.api.Archive)1 BeansXml (org.jboss.shrinkwrap.impl.BeansXml)1 DummySessionBean (org.jboss.weld.tests.config.files.DummySessionBean)1 TDAO (org.jboss.weld.tests.interceptors.lhotse.fst.TDAO)1 TxInterceptor (org.jboss.weld.tests.interceptors.lhotse.fst.TxInterceptor)1 CDAO (org.jboss.weld.tests.interceptors.lhotse.snd.CDAO)1