use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class OptaPlannerIntegrationTest method createDeployment.
@Deployment
public static JavaArchive createDeployment() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-optaplanner-tests");
archive.addPackages(true, "org.optaplanner.examples.cloudbalancing");
archive.addPackages(true, "org.optaplanner.examples.common");
archive.setManifest(() -> {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "com.google.guava,org.apache.commons.lang3");
return builder.openStream();
});
archive.addAsResource("optaplanner/cloudBalancingScoreRules.drl");
archive.addAsResource("optaplanner/solverConfig.xml");
return archive;
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class UndertowHandlerTest method createDeployment.
@Deployment
public static JavaArchive createDeployment() {
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "undertow-handler-test");
archive.addClasses(HttpRequest.class);
archive.setManifest(new Asset() {
@Override
public InputStream openStream() {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "org.wildfly.extension.undertow,io.undertow.core");
return builder.openStream();
}
});
return archive;
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class SpringContextDeploymentTest method createdeployment.
@Deployment
public static JavaArchive createdeployment() {
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-deployment-tests");
archive.addAsResource("spring/transform6-camel-context.xml", "some-other-name.xml");
archive.setManifest(new Asset() {
@Override
public InputStream openStream() {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "org.jboss.as.controller-client");
return builder.openStream();
}
});
return archive;
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class MyBatisIntegrationTest method createdeployment.
@Deployment
public static JavaArchive createdeployment() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-mybatis-tests");
archive.addClasses(Account.class);
archive.addAsResource("mybatis/SqlMapConfig.xml", "SqlMapConfig.xml");
archive.addAsResource("mybatis/Account.xml");
archive.setManifest(() -> {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "com.h2database.h2");
return builder.openStream();
});
return archive;
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class Olingo2IntegrationTest method createOlingoServerDeployment.
@Deployment(testable = false, order = 1, name = "olingo-server.war")
public static WebArchive createOlingoServerDeployment() {
final WebArchive archive = ShrinkWrap.create(WebArchive.class, "olingo-server.war");
archive.addPackage(Olingo2TestServlet.class.getPackage());
archive.setManifest(() -> {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "org.apache.cxf.ext,org.apache.olingo2");
return builder.openStream();
});
return archive;
}
Aggregations