use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class BothPojoAndEjbInWarTestCase method createDeployment.
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "as1605-usecase1.war");
war.addClass(EndpointIface.class);
war.addClass(POJOEndpoint.class);
war.addClass(EJB3Endpoint.class);
war.addAsWebInfResource(new StringAsset("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<web-app version=\"3.0\"\n" + " xmlns=\"http://java.sun.com/xml/ns/javaee\"\n" + " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" + " xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd\"\n" + " metadata-complete=\"false\">\n" + " <servlet>\n" + " <servlet-name>POJOService</servlet-name>\n" + " <servlet-class>org.jboss.as.test.integration.ws.context.as1605.POJOEndpoint</servlet-class>\n" + " </servlet>\n" + " <servlet-mapping>\n" + " <servlet-name>POJOService</servlet-name>\n" + " <url-pattern>/POJOEndpoint</url-pattern>\n" + " </servlet-mapping>\n" + "</web-app>\n"), "web.xml");
war.addAsWebInfResource(new StringAsset("<?xml version='1.0' encoding='UTF-8'?>\n" + "<!DOCTYPE jboss-web PUBLIC \"-//JBoss//DTD Web Application 2.4//EN\" \"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd\">\n" + "<jboss-web>\n" + "<context-root>/as1605-customized</context-root>\n" + "</jboss-web>\n"), "jboss-web.xml");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WSTrustTestCase method createBearerSTSDeployment.
@Deployment(name = BEARER_STS_DEP, testable = false)
public static WebArchive createBearerSTSDeployment() {
WebArchive archive = ShrinkWrap.create(WebArchive.class, BEARER_STS_DEP + ".war");
archive.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client,org.jboss.ws.cxf.sts annotations\n")).addClass(org.jboss.as.test.integration.ws.wsse.trust.stsbearer.STSBearerCallbackHandler.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.stsbearer.SampleSTSBearer.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.shared.WSTrustAppUtils.class).addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/jboss-web.xml", "jboss-web.xml").addAsWebInfResource(createFilteredAsset("WEB-INF/wsdl/bearer-ws-trust-1.4-service.wsdl"), "wsdl/bearer-ws-trust-1.4-service.wsdl").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/stsstore.jks", "classes/stsstore.jks").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/stsKeystore.properties", "classes/stsKeystore.properties").addAsManifestResource(WSTrustTestCase.class.getPackage(), "META-INF/permissions.xml", "permissions.xml").setWebXML(WSTrustTestCase.class.getPackage(), "WEB-INF/bearer/web.xml");
return archive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WSTrustTestCase method createServerDeployment.
@Deployment(name = SERVER_DEP, testable = false)
public static WebArchive createServerDeployment() {
WebArchive archive = ShrinkWrap.create(WebArchive.class, SERVER_DEP + ".war");
archive.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client\n")).addClass(org.jboss.as.test.integration.ws.wsse.trust.SayHello.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.SayHelloResponse.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.service.ServerCallbackHandler.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.service.ServiceIface.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.service.ServiceImpl.class).addAsWebInfResource(createFilteredAsset("WEB-INF/wsdl/SecurityService.wsdl"), "wsdl/SecurityService.wsdl").addAsWebInfResource(createFilteredAsset("WEB-INF/wsdl/SecurityService_schema1.xsd"), "wsdl/SecurityService_schema1.xsd").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/servicestore.jks", "classes/servicestore.jks").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/serviceKeystore.properties", "classes/serviceKeystore.properties").addAsManifestResource(WSTrustTestCase.class.getPackage(), "WEB-INF/permissions.xml", "permissions.xml");
return archive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WSTrustTestCase method createHolderOfKeySTSDeployment.
@Deployment(name = HOLDER_OF_KEY_STS_DEP, testable = false)
public static WebArchive createHolderOfKeySTSDeployment() {
WebArchive archive = ShrinkWrap.create(WebArchive.class, HOLDER_OF_KEY_STS_DEP + ".war");
archive.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client,org.jboss.ws.cxf.sts annotations\n")).addClass(org.jboss.as.test.integration.ws.wsse.trust.stsholderofkey.STSHolderOfKeyCallbackHandler.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.stsholderofkey.SampleSTSHolderOfKey.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.shared.WSTrustAppUtils.class).addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/jboss-web.xml", "jboss-web.xml").addAsWebInfResource(createFilteredAsset("WEB-INF/wsdl/holderofkey-ws-trust-1.4-service.wsdl"), "wsdl/holderofkey-ws-trust-1.4-service.wsdl").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/stsstore.jks", "classes/stsstore.jks").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/stsKeystore.properties", "classes/stsKeystore.properties").addAsManifestResource(WSTrustTestCase.class.getPackage(), "WEB-INF/permissions.xml", "permissions.xml").setWebXML(WSTrustTestCase.class.getPackage(), "WEB-INF/holderofkey/web.xml");
return archive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WSTrustTestCase method createOnBehalfOfServerDeployment.
@Deployment(name = ON_BEHALF_OF_SERVER_DEP, testable = false)
public static WebArchive createOnBehalfOfServerDeployment() {
WebArchive archive = ShrinkWrap.create(WebArchive.class, ON_BEHALF_OF_SERVER_DEP + ".war");
archive.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.ws.cxf.jbossws-cxf-client, org.jboss.ws.cxf.sts\n")).addClass(org.jboss.as.test.integration.ws.wsse.trust.SayHello.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.SayHelloResponse.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.onbehalfof.OnBehalfOfCallbackHandler.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.onbehalfof.OnBehalfOfServiceIface.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.onbehalfof.OnBehalfOfServiceImpl.class).addClass(org.jboss.as.test.integration.ws.wsse.trust.service.ServiceIface.class).addAsWebInfResource(createFilteredAsset("WEB-INF/wsdl/OnBehalfOfService.wsdl"), "wsdl/OnBehalfOfService.wsdl").addAsWebInfResource(createFilteredAsset("WEB-INF/wsdl/OnBehalfOfService_schema1.xsd"), "wsdl/OnBehalfOfService_schema1.xsd").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/actasstore.jks", "classes/actasstore.jks").addAsWebInfResource(WSTrustTestCase.class.getPackage(), "WEB-INF/actasKeystore.properties", "classes/actasKeystore.properties").addAsManifestResource(WSTrustTestCase.class.getPackage(), "META-INF/clientstore.jks", "clientstore.jks").addAsManifestResource(WSTrustTestCase.class.getPackage(), "META-INF/clientKeystore.properties", "clientKeystore.properties").addAsManifestResource(WSTrustTestCase.class.getPackage(), "META-INF/permissions.xml", "permissions.xml");
return archive;
}
Aggregations