use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class RegexOptionNotDefinedTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "testregex.war");
war.addPackage(RegexOptionNotDefinedTestCase.class.getPackage());
war.addAsWebInfResource(RegexOptionNotDefinedTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class EjbRefLookupTestCase method deployWar.
@Deployment(order = 1, name = WAR_DEPLOYMENT)
public static Archive<?> deployWar() {
WebArchive war = ShrinkWrap.create(WebArchive.class);
war.addClasses(FirstRestService.class, FirstTestServlet.class, SecondRestService.class, SecondTestServlet.class);
war.addAsManifestResource(new StringAsset("Dependencies: deployment.ejb-test-ear.ear.ejb.jar\n"), "MANIFEST.MF");
war.addAsWebInfResource(EjbRefLookupTestCase.class.getPackage(), "web.xml", "web.xml");
war.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class AroundConstructNoCreateTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "testlocal.war");
war.addPackage(AroundConstructNoCreateTestCase.class.getPackage());
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class InterceptorLifecycleSFSBTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "testlocal.war");
war.addPackage(InterceptorLifecycleSFSBTestCase.class.getPackage());
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class EjbMethodInterceptorTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "testmethodinterceptor.war");
war.addPackage(EjbMethodInterceptorTestCase.class.getPackage());
war.addAsWebInfResource(EjbMethodInterceptorTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
return war;
}
Aggregations