use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class CustomErrorsUnitTestCase method producerDeployment.
@Deployment(name = "error-producer.war", testable = false)
public static WebArchive producerDeployment() {
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
String resourcesLocation = "org/jboss/as/test/integration/web/customerrors/resources/";
WebArchive war = ShrinkWrap.create(WebArchive.class, "error-producer.war");
war.setWebXML(tccl.getResource(resourcesLocation + "error-producer-web.xml"));
war.addAsManifestResource(CustomErrorsUnitTestCase.class.getPackage(), "permissions.xml", "permissions.xml");
war.addClass(ErrorGeneratorServlet.class);
war.addClass(ContextForwardServlet.class);
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class InjectionTestCase method deployment.
@Deployment
public static Archive<?> deployment() {
// construct shared jar
JavaArchive sharedJar = ShrinkWrap.create(JavaArchive.class, "jaxws-injection.jar");
sharedJar.addClass(BeanIface.class);
sharedJar.addClass(BeanImpl.class);
// construct ejb3 jar
JavaArchive ejb3Jar = ShrinkWrap.create(JavaArchive.class, "jaxws-injection-ejb3.jar");
ejb3Jar.addClass(EJB3Bean.class);
ejb3Jar.addClass(TestHandler.class);
ejb3Jar.addClass(AbstractEndpointImpl.class);
ejb3Jar.addClass(EndpointIface.class);
ejb3Jar.addAsResource(EJB3Bean.class.getPackage(), "jaxws-handler.xml", "org/jboss/as/test/integration/ws/injection/ejb/basic/webservice/jaxws-handler.xml");
ejb3Jar.addAsManifestResource(EJB3Bean.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
ejb3Jar.addAsManifestResource(new StringAsset("Dependencies: deployment.jaxws-injection.ear.jaxws-injection.jar"), "MANIFEST.MF");
// construct pojo war
WebArchive pojoWar = ShrinkWrap.create(WebArchive.class, "jaxws-injection-pojo.war");
pojoWar.addClass(POJOBean.class);
pojoWar.addClass(TestHandler.class);
pojoWar.addClass(AbstractEndpointImpl.class);
pojoWar.addClass(EndpointIface.class);
pojoWar.addAsResource(POJOBean.class.getPackage(), "jaxws-handler.xml", "org/jboss/as/test/integration/ws/injection/ejb/basic/webservice/jaxws-handler.xml");
pojoWar.addAsWebInfResource(POJOBean.class.getPackage(), "web.xml", "web.xml");
pojoWar.addAsManifestResource(new StringAsset("Dependencies: deployment.jaxws-injection.ear.jaxws-injection.jar"), "MANIFEST.MF");
// construct ear
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "jaxws-injection.ear");
ear.addAsModule(sharedJar);
ear.addAsModule(ejb3Jar);
ear.addAsModule(pojoWar);
return ear;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class SchemaLocationsRewriteTestCase method createDeployment.
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "schema-location-rewrite.war");
war.addPackage(SimpleService.class.getPackage()).addAsWebInfResource(SchemaLocationsRewriteTestCase.class.getPackage(), "SimpleService.wsdl", "wsdl/SimpleService.wsdl").addAsWebInfResource(SchemaLocationsRewriteTestCase.class.getPackage(), "imported/AnotherService.wsdl", "wsdl/imported/AnotherService.wsdl").addAsWebInfResource(SchemaLocationsRewriteTestCase.class.getPackage(), "imported/SimpleService.xsd", "wsdl/imported/SimpleService.xsd").addAsWebInfResource(SchemaLocationsRewriteTestCase.class.getPackage(), "imported/importedschema.xsd", "wsdl/imported/importedschema.xsd");
war.addClass(SimpleService.class);
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class SimpleWebserviceEndpointTestCase method createDeployment.
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "ws-endpoint-example.war");
war.addPackage(SimpleWebserviceEndpointImpl.class.getPackage());
war.addClass(SimpleWebserviceEndpointImpl.class);
war.addAsWebInfResource(SimpleWebserviceEndpointTestCase.class.getPackage(), "web.xml", "web.xml");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class Usecase2TestCase method createDeployment.
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "anonymous-pojo-usecase2.war");
war.addPackage(AnonymousPOJO.class.getPackage());
war.addClass(AnonymousPOJO.class);
return war;
}
Aggregations