use of org.wildfly.swarm.jaxrs.JAXRSArchive in project narayana by jbosstm.
the class LRASmokeIT method createDeployment.
@Deployment(testable = false)
public static Archive<?> createDeployment() throws Exception {
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class, "lra-smoke-it.war");
deployment.addPackages(true, "io.narayana.lra.coordinator");
File[] libs = Maven.resolver().loadPomFromFile("pom.xml").resolve("org.jboss.narayana.rts:lra-filters").withTransitivity().as(File.class);
deployment.addAsLibraries(libs);
return deployment;
}
use of org.wildfly.swarm.jaxrs.JAXRSArchive in project narayana by jbosstm.
the class SpecIT method createDeployment.
@Deployment(testable = false)
public static Archive<?> createDeployment() throws Exception {
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class, "lra-smoke-it.war");
deployment.addPackages(true, "io/narayana/lra/participant");
File[] libs = Maven.resolver().loadPomFromFile("pom.xml").resolve("org.jboss.narayana.rts:lra-filters").withTransitivity().as(File.class);
deployment.addAsLibraries(libs);
return deployment;
}
use of org.wildfly.swarm.jaxrs.JAXRSArchive in project wildfly-swarm by wildfly-swarm.
the class AdvertiseAndTagByAnnotationTest method createDeployment.
@Deployment(testable = false)
public static Archive<?> createDeployment() throws Exception {
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class);
deployment.addClass(TaggedAdvertiser.class);
deployment.addClass(UntaggedAdvertiser.class);
deployment.addAllDependencies();
return deployment;
}
use of org.wildfly.swarm.jaxrs.JAXRSArchive in project wildfly-swarm by wildfly-swarm.
the class AdvertiseAndTagByMainTest method createDeployment.
@Deployment(testable = false)
public static Archive<?> createDeployment() throws Exception {
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class);
deployment.add(EmptyAsset.INSTANCE, "nothing");
deployment.as(TopologyArchive.class).advertise(serviceName, asList(tag1, tag2));
deployment.addAllDependencies();
return deployment;
}
use of org.wildfly.swarm.jaxrs.JAXRSArchive in project wildfly-swarm by wildfly-swarm.
the class WebXMLAdapter method process.
@Override
public void process() {
if (archive.getName().endsWith(".war")) {
JAXRSArchive jaxrsArchive = archive.as(JAXRSArchive.class);
jaxrsArchive.findWebXmlAsset().setContextParam("resteasy.providers", SERVER_SIDE_FILTERS);
}
}
Aggregations