Search in sources :

Example 11 with EnterpriseArchive

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

the class ManagedBeansWithCDITest method deployment.

@Deployment(testable = false)
public static Archive<?> deployment() {
    EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, Utils.getDeploymentNameAsHash(ManagedBeansWithCDITest.class, Utils.ARCHIVE_TYPE.EAR));
    ear.addAsModule(ShrinkWrap.create(WebArchive.class, "test.war").addAsWebResource(ManagedBeansWithCDITest.class.getPackage(), "index.xhtml", "index.xhtml").addAsWebResource(ManagedBeansWithCDITest.class.getPackage(), "timezones.xhtml", "timezones.xhtml").setWebXML(ManagedBeansWithCDITest.class.getPackage(), "web.xml"));
    ear.addAsLibrary(ShrinkWrap.create(JavaArchive.class, "test.jar").addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"));
    return ear;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 12 with EnterpriseArchive

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

the class AbstractEJBTransactionsTest method deployEJBTest.

@Deployment(name = "EJBTransactions")
@TargetsContainer(REMOTE_CONTAINER)
public static Archive<EnterpriseArchive> deployEJBTest() {
    EnterpriseArchive ear = et.buildArchive();
    System.out.println("### Deploying ear '" + ear + "'");
    return ear;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) TargetsContainer(org.jboss.arquillian.container.test.api.TargetsContainer)

Example 13 with EnterpriseArchive

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

the class JBWS2957TestCase method createDeployment.

@Deployment(testable = false)
public static EnterpriseArchive createDeployment() {
    JavaArchive archive1 = ShrinkWrap.create(JavaArchive.class, "jaxws-jbws2957-ejbinwarwebinflib_ejb.jar");
    archive1.addManifest().addClass(org.jboss.test.ws.jaxws.jbws2957.common.HelloIface.class).addClass(org.jboss.test.ws.jaxws.jbws2957.common.HelloImpl.class);
    WebArchive archive2 = ShrinkWrap.create(WebArchive.class, "jaxws-jbws2957-ejbinwarwebinflib_web.war");
    archive2.addManifest().addAsLibraries(archive1).addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2957/WEB-INF/ejb-jar.xml"), "ejb-jar.xml").addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2957/WEB-INF/wsdl/HelloService.wsdl"), "wsdl/HelloService.wsdl");
    EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, "jaxws-jbws2957-ejbinwarwebinflib.ear");
    archive.addManifest().addAsModule(archive2);
    return archive;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) HelloIface(org.jboss.test.ws.jaxws.jbws2957.common.HelloIface) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) File(java.io.File) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 14 with EnterpriseArchive

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

the class EarTestCase method createDeployment.

@Deployment(testable = false)
public static EnterpriseArchive createDeployment() {
    JavaArchive archive1 = ShrinkWrap.create(JavaArchive.class, "jaxws-samples-eardeployment-ejb3.jar");
    archive1.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.logging\n")).addClass(org.jboss.test.ws.jaxws.samples.eardeployment.EJB3Bean.class).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"), "wsdl/Endpoint.wsdl").addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"), "wsdl/TestService.xsd");
    WebArchive archive2 = ShrinkWrap.create(WebArchive.class, "jaxws-samples-eardeployment-pojo.war");
    archive2.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.logging,org.jboss.ws.common,org.jboss.as.server\n")).addClass(org.jboss.test.ws.jaxws.samples.eardeployment.JSEBean.class).addClass(org.jboss.test.ws.jaxws.samples.eardeployment.SupportServlet.class).addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/jboss-web.xml"), "jboss-web.xml").addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"), "wsdl/Endpoint.wsdl").addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"), "wsdl/TestService.xsd").setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/web.xml"));
    EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, "jaxws-samples-eardeployment.ear");
    archive.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.as.server\n")).addAsModule(archive1).addAsModule(archive2).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/META-INF/permissions.xml"), "permissions.xml");
    return archive;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 15 with EnterpriseArchive

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

the class JBossWebServicesEarTestCase method createDeployment.

@Deployment(testable = false)
public static EnterpriseArchive createDeployment() {
    JavaArchive archive1 = ShrinkWrap.create(JavaArchive.class, "jaxws-samples-jbosswebservices-eardeployment-ejb3.jar");
    archive1.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.logging\n")).addClass(org.jboss.test.ws.jaxws.samples.eardeployment.EJB3Bean.class).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/jboss-webservices.xml"), "jboss-webservices.xml").addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"), "wsdl/Endpoint.wsdl").addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"), "wsdl/TestService.xsd");
    WebArchive archive2 = ShrinkWrap.create(WebArchive.class, "jaxws-samples-jbosswebservices-eardeployment-pojo.war");
    archive2.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.logging,org.jboss.ws.common,org.jboss.as.server\n")).addClass(org.jboss.test.ws.jaxws.samples.eardeployment.JSEBean.class).addClass(org.jboss.test.ws.jaxws.samples.eardeployment.SupportServlet.class).addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/jboss-web2.xml"), "jboss-web.xml").addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"), "wsdl/Endpoint.wsdl").addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"), "wsdl/TestService.xsd").setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/web.xml"));
    EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, "jaxws-samples-jbosswebservices-eardeployment.ear");
    archive.setManifest(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.jboss.as.server\n")).addAsModule(archive1).addAsModule(archive2).addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/META-INF/jboss-webservices.xml"), "jboss-webservices.xml").addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/META-INF/permissions.xml"), "permissions.xml");
    return archive;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) File(java.io.File) 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