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