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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations