Search in sources :

Example 1 with Filter

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

the class JBWS2278TestCase method createDeployments.

@Deployment(testable = false)
public static WebArchive createDeployments() {
    WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxws-jbws2278.war");
    archive.addManifest().addPackages(false, new Filter<ArchivePath>() {

        @Override
        public boolean include(ArchivePath path) {
            return !path.get().contains("TestCase");
        }
    }, "org.jboss.test.ws.jaxws.jbws2278").addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2278/WEB-INF/jboss-web.xml"), "jboss-web.xml").addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2278/WEB-INF/wsdl/Test.wsdl"), "wsdl/Test.wsdl").setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/jbws2278/WEB-INF/web.xml"));
    return archive;
}
Also used : ArchivePath(org.jboss.shrinkwrap.api.ArchivePath) Filter(org.jboss.shrinkwrap.api.Filter) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 2 with Filter

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

the class ComplexTestCase method createDeployments.

@Deployment(testable = false)
public static WebArchive createDeployments() {
    WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxws-complex.war");
    archive.addManifest().addPackages(false, new Filter<ArchivePath>() {

        @Override
        public boolean include(ArchivePath path) {
            return !path.get().contains("TestCase");
        }
    }, "org.jboss.test.ws.jaxws.complex").setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/complex/WEB-INF/web.xml"));
    return archive;
}
Also used : ArchivePath(org.jboss.shrinkwrap.api.ArchivePath) Filter(org.jboss.shrinkwrap.api.Filter) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

File (java.io.File)2 Deployment (org.jboss.arquillian.container.test.api.Deployment)2 ArchivePath (org.jboss.shrinkwrap.api.ArchivePath)2 Filter (org.jboss.shrinkwrap.api.Filter)2 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)2