use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class RSSIntegrationTest method createDeployment.
@Deployment
public static WebArchive createDeployment() {
return ShrinkWrap.create(WebArchive.class, "rss-tests.war").addClass(RSSFeedServlet.class).setManifest(() -> {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "com.rometools.rome");
return builder.openStream();
});
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class Elasticsearch5IntegrationTest method createDeployment.
@Deployment
public static JavaArchive createDeployment() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-elasticsearch5-tests.jar");
archive.addClasses(ElasticsearchNodeProducer.class, AvailablePortFinder.class, FileUtils.class);
archive.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
archive.setManifest(() -> {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "org.elasticsearch5");
return builder.openStream();
});
return archive;
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class SystemContextTest method createDeployment.
@Deployment
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class, "camel-system-tests.jar").addClass(DMRUtils.class).setManifest(() -> {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "org.jboss.dmr,org.jboss.as.controller-client");
return builder.openStream();
});
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class ElasticsearchIntegrationTest method createDeployment.
@Deployment
public static JavaArchive createDeployment() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-elasticsearch-tests.jar");
archive.addClasses(ElasticsearchClientProducer.class, FileUtils.class);
archive.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
archive.setManifest(() -> {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "org.elasticsearch");
return builder.openStream();
});
return archive;
}
use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.
the class ExplicitCamelDependencyTest method jarCamelDeployment.
@Deployment
public static JavaArchive jarCamelDeployment() {
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "cameldep.jar");
archive.setManifest(new Asset() {
@Override
public InputStream openStream() {
ManifestBuilder builder = new ManifestBuilder();
builder.addManifestHeader("Dependencies", "org.apache.camel");
return builder.openStream();
}
});
return archive;
}
Aggregations