use of org.wildfly.swarm.undertow.WARArchive in project taskana by Taskana.
the class TaskanaProducersTest method createDeployment.
@Deployment(testable = false)
public static Archive<?> createDeployment() throws Exception {
WARArchive deployment = ShrinkWrap.create(WARArchive.class);
deployment.addPackage("pro.taskana");
deployment.addClass(TaskanaProducers.class);
deployment.addAllDependencies();
deployment.addDependency("org.mybatis:mybatis:3.4.2");
deployment.addDependency("org.mybatis:mybatis-cdi:1.0.0");
deployment.addDependency("pro.taskana:taskana-core:0.1.2-SNAPSHOT");
deployment.addAsResource("META-INF/beans.xml");
deployment.addAsResource("taskana.properties");
deployment.addAsResource("project-defaults.yml");
return deployment;
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class SkipPatternTest method createDeployment.
@Deployment
public static Archive createDeployment() throws Exception {
WARArchive deployment = ShrinkWrap.create(WARArchive.class);
// on real world deployments, these parts would come from a dependency of the target application
deployment.addClass(MockTracerResolver.class);
deployment.addPackage(MockTracer.class.getPackage());
deployment.addAsServiceProvider(TracerResolver.class, MockTracerResolver.class);
// this is a simple servlet, that we can hit with our tests
deployment.addClass(SimpleServlet.class);
deployment.addClass(HealthServlet.class);
deployment.addAsResource("project-skip-pattern.yml");
return deployment;
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class TraceResolverOnDeploymentTest method createDeployment.
@Deployment
public static Archive createDeployment() throws Exception {
WARArchive deployment = ShrinkWrap.create(WARArchive.class);
// on real world deployments, these parts would come from a dependency of the target application
deployment.addClass(MockTracerResolver.class);
deployment.addPackage(MockTracer.class.getPackage());
deployment.addAsServiceProvider(TracerResolver.class, MockTracerResolver.class);
// this is a simple servlet, that we can hit with our tests
deployment.addClass(SimpleServlet.class);
deployment.addClass(AsyncServlet.class);
return deployment;
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class SwaggerConfiguredArquillianTest method createDeployment.
/**
* Construct a deployment that will trigger the framework to initialize a default JAX-RS Application.
*/
@Deployment
public static Archive createDeployment() throws Exception {
WARArchive archive = ShrinkWrap.create(WARArchive.class, "SampleTest.war");
archive.addClass(Resource.class);
URL yml = Thread.currentThread().getContextClassLoader().getResource("project-defaults.yml");
assert yml != null;
archive.addAsResource(new File(yml.toURI()), "/project-defaults.yml");
archive.addAllDependencies();
return archive;
}
use of org.wildfly.swarm.undertow.WARArchive in project wildfly-swarm by wildfly-swarm.
the class SwaggerConfiguredArquillianWebAppTest method createDeployment.
@Deployment
public static Archive createDeployment() throws Exception {
WARArchive archive = ShrinkWrap.create(WARArchive.class, "SampleTest.war");
archive.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
archive.addClass(Resource.class);
archive.addClass(CustomApplication.class);
archive.addAllDependencies();
archive.setContextRoot("/sample");
return archive;
}
Aggregations