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