use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class RibbonSecuredArquillianTest method createDeployment.
@Deployment(testable = false)
public static Archive createDeployment() {
WARArchive deployment = ShrinkWrap.create(WARArchive.class);
deployment.addClass(TestServlet.class);
return deployment;
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class RibbonArquillianTest method createDeployment.
@Deployment(testable = false)
public static Archive createDeployment() {
WARArchive deployment = ShrinkWrap.create(WARArchive.class);
deployment.add(EmptyAsset.INSTANCE, "nothing");
return deployment;
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class SampleTest method createDeployment.
@Deployment
public static Archive createDeployment() throws Exception {
WARArchive archive = ShrinkWrap.create(WARArchive.class, "SampleTest.war");
archive.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
archive.addPackage("example");
archive.addAllDependencies();
return archive;
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class RestClientArchiveProcessor method process.
@Override
public void process(Archive<?> appArchive, TestClass testClass) {
if (!(appArchive instanceof WebArchive)) {
return;
}
log.info("Preparing archive: " + appArchive);
WARArchive war = appArchive.as(WARArchive.class);
PomEquippedResolveStage pom = Maven.resolver().loadPomFromFile("pom.xml");
// Wiremock classes that need to be present
File[] wiremockDeps = pom.resolve("com.github.tomakehurst:wiremock").withTransitivity().asFile();
war.addAsLibraries(wiremockDeps);
// TCK Classes that need to present
war.addPackages(true, "org.eclipse.microprofile.rest.client.tck.interfaces");
log.fine("Augmented war: \n" + war.toString(true));
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class JAXRSArchiveTest method testDetectJAXRSness_methodAnnotation.
@Test
public void testDetectJAXRSness_methodAnnotation() {
WARArchive archive = ShrinkWrap.create(WARArchive.class);
archive.addClass(MyOtherResource.class);
assertThat(JAXRSArchive.isJAXRS(archive)).isTrue();
}
Aggregations