Search in sources :

Example 16 with EnterpriseArchive

use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project jbossws-cxf by jbossws.

the class WebServiceRefTestCase method createAppclientDeployment.

@Deployment(name = DEP_APPCLIENT_EAR, order = 2, testable = false, managed = false)
public static EnterpriseArchive createAppclientDeployment() {
    JavaArchive jarArchive = ShrinkWrap.create(JavaArchive.class, "jaxws-samples-webserviceref-appclient.jar");
    jarArchive.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "main-class: org.jboss.test.ws.jaxws.samples.webserviceref.EndpointClientOne\n")).addClass(org.jboss.test.ws.jaxws.samples.webserviceref.Endpoint.class).addClass(org.jboss.test.ws.jaxws.samples.webserviceref.EndpointClientOne.class).addClass(org.jboss.test.ws.jaxws.samples.webserviceref.EndpointService.class).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/webserviceref/META-INF/application-client.xml"), "application-client.xml").addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/webserviceref/META-INF/jboss-client.xml"), "jboss-client.xml").addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/webserviceref/META-INF/wsdl/Endpoint.wsdl"), "wsdl/Endpoint.wsdl").addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/webserviceref/META-INF/wsdl/MultipleEndpoint.wsdl"), "wsdl/MultipleEndpoint.wsdl");
    EnterpriseArchive earArchive = ShrinkWrap.create(EnterpriseArchive.class, DEP_APPCLIENT_EAR + ".ear");
    earArchive.addAsModule(jarArchive);
    JBossWSTestHelper.writeToFile(earArchive);
    fullAppclientDepName = earArchive.getName() + "#" + jarArchive.getName();
    return earArchive;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) File(java.io.File) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 17 with EnterpriseArchive

use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project jbossws-cxf by jbossws.

the class JBWS2074TestCase method createClientDeployment.

@Deployment(name = EAR_DEPLOYMENT, testable = false, managed = false, order = 2)
public static EnterpriseArchive createClientDeployment() {
    EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, EAR_DEPLOYMENT + ".ear");
    archive.addManifest().addAsModule(getWarArchive()).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2074/usecase3-ear/META-INF/application.xml"), "application.xml");
    return archive;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 18 with EnterpriseArchive

use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project jbossws-cxf by jbossws.

the class JBWS2074TestCase method createClientDeployment.

@Deployment(name = EAR_DEPLOYMENT, testable = false, managed = false, order = 2)
public static EnterpriseArchive createClientDeployment() {
    EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, "jaxws-jbws2074-usecase4.ear");
    archive.addManifest().addAsModule(getJarArchive()).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2074/usecase4-ear/META-INF/application.xml"), "application.xml");
    return archive;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 19 with EnterpriseArchive

use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project jbossws-cxf by jbossws.

the class JBWS2074TestCase method createClientDeployment.

@Deployment(name = EAR_DEPLOYMENT, testable = false, managed = false, order = 2)
public static EnterpriseArchive createClientDeployment() {
    EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, "jaxws-jbws2074-usecase5.ear");
    archive.addManifest().addAsModule(getJarArchive()).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2074/usecase5-ear/META-INF/application.xml"), "application.xml");
    return archive;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 20 with EnterpriseArchive

use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project wildfly by wildfly.

the class JBossAppXMLSecurityTestCase method createDeployment.

// the incorrectly named "testable" attribute tells Arquillian whether or not
@Deployment(testable = false)
public static // We don't want that, so set that flag to false
Archive createDeployment() {
    final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
    ear.addAsManifestResource(JBossAppXMLSecurityTestCase.class.getPackage(), "jboss-app.xml", "jboss-app.xml");
    final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
    jar.addClasses(BeanInterface.class, FirstBean.class, SecondBean.class);
    jar.addPackage(CommonCriteria.class.getPackage());
    jar.addAsManifestResource(JBossAppXMLSecurityTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");
    ear.addAsModule(jar);
    return ear;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) CommonCriteria(org.jboss.as.test.categories.CommonCriteria) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)257 Deployment (org.jboss.arquillian.container.test.api.Deployment)207 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)187 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)127 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)82 File (java.io.File)39 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)35 BeforeClass (org.junit.BeforeClass)22 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)16 ModelNode (org.jboss.dmr.ModelNode)15 OperationBuilder (org.jboss.as.controller.client.OperationBuilder)14 ZipExporterImpl (org.jboss.shrinkwrap.impl.base.exporter.zip.ZipExporterImpl)11 HttpRequest (org.jboss.as.test.integration.common.HttpRequest)8 BasicPath (org.jboss.shrinkwrap.impl.base.path.BasicPath)8 Test (org.junit.Test)8 Document (org.w3c.dom.Document)8 HashMap (java.util.HashMap)7 GatewayConfig (org.apache.knox.gateway.config.GatewayConfig)7 Topology (org.apache.knox.gateway.topology.Topology)7 PropertyPermission (java.util.PropertyPermission)6