use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class EjbLocalRefInjectionTestCase method deployment.
@Deployment
public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war");
war.addClasses(EjbLocalRefInjectionServlet.class, NamedSLSB.class, SimpleSLSB.class, Hello.class);
war.addAsWebInfResource(EjbLocalRefInjectionTestCase.class.getPackage(), "web.xml", "web.xml");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class DuplicateGlobalBindingInjectionTestCase method deployment2.
@Deployment(name = "dep2", managed = true, testable = true)
public static WebArchive deployment2() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "dep2.war");
war.addPackage(HttpRequest.class.getPackage());
// war.addPackage(DuplicateGlobalBindingInjectionTestCase.class.getPackage());
war.addClasses(EnvEntryInjectionServlet.class, EnvEntryManagedBean.class, DuplicateGlobalBindingInjectionTestCase.class);
war.addAsWebInfResource(getWebXml(), "web.xml");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class EnvEntryInjectionServletTestCase method deployment.
@Deployment
public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war");
war.addClasses(EnvEntryInjectionServlet.class, EnvEntryManagedBean.class);
war.addAsWebInfResource(EnvEntryInjectionServletTestCase.class.getPackage(), "EnvEntryInjectionTestCase-web.xml", "web.xml");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class AroundConstructSimpleTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "testlocal.war");
war.addPackage(AroundConstructSimpleTestCase.class.getPackage());
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class AnnotationHomeTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME);
war.addPackage(AnnotationHomeTestCase.class.getPackage());
war.addPackage(SimpleInterface.class.getPackage());
return war;
}
Aggregations