Search in sources :

Example 6 with ManifestBuilder

use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.

the class LumberjackComponentTest method deployment.

@Deployment
public static JavaArchive deployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-lumberjack-tests");
    archive.addClasses(AvailablePortFinder.class);
    archive.addAsResource("lumberjack/window10");
    archive.addAsResource("lumberjack/window15");
    archive.setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "io.netty");
        return builder.openStream();
    });
    return archive;
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 7 with ManifestBuilder

use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.

the class TransactedJMSIntegrationTest method createdeployment.

@Deployment
public static JavaArchive createdeployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-jms-tx-tests");
    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;
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) InputStream(java.io.InputStream) Asset(org.jboss.shrinkwrap.api.asset.Asset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 8 with ManifestBuilder

use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.

the class CoapIntegrationTest method createDeployment.

@Deployment
public static JavaArchive createDeployment() {
    return ShrinkWrap.create(JavaArchive.class, "camel-coap-tests.jar").addClass(AvailablePortFinder.class).setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "org.eclipse.californium");
        return builder.openStream();
    });
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) AvailablePortFinder(org.wildfly.camel.test.common.utils.AvailablePortFinder) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 9 with ManifestBuilder

use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.

the class CXFRSSecureConsumerIntegrationTest method deployment.

@Deployment
public static JavaArchive deployment() {
    return ShrinkWrap.create(JavaArchive.class, "cxfrs-secure-consumer-tests").addClasses(GreetingService.class, HttpRequest.class).addAsResource("cxf/spring/cxfrs-secure-consumer-camel-context.xml", "cxfrs-secure-consumer-camel-context.xml").setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "org.jboss.resteasy.resteasy-jaxrs");
        return builder.openStream();
    });
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 10 with ManifestBuilder

use of org.jboss.gravia.resource.ManifestBuilder in project wildfly-camel by wildfly-extras.

the class CXFRSConsumerIntegrationTest method deployment.

@Deployment
public static JavaArchive deployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "cxfrs-consumer-tests");
    archive.addClasses(GreetingService.class);
    archive.addAsResource("cxf/spring/cxfrs-consumer-camel-context.xml", "cxfrs-consumer-camel-context.xml");
    archive.setManifest(new Asset() {

        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.jboss.resteasy.resteasy-jaxrs");
            return builder.openStream();
        }
    });
    return archive;
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) InputStream(java.io.InputStream) Asset(org.jboss.shrinkwrap.api.asset.Asset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)25 ManifestBuilder (org.jboss.gravia.resource.ManifestBuilder)25 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)18 InputStream (java.io.InputStream)8 Asset (org.jboss.shrinkwrap.api.asset.Asset)8 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)4 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)2 EmbeddedKafkaBroker (org.wildfly.camel.test.common.kafka.EmbeddedKafkaBroker)2 XMLUtils (org.wildfly.camel.test.common.utils.XMLUtils)2 EmbeddedZookeeper (org.wildfly.camel.test.common.zookeeper.EmbeddedZookeeper)2 Customer (org.wildfly.camel.test.jaxb.model.Customer)2 Customer (org.wildfly.camel.test.common.types.Customer)1 AvailablePortFinder (org.wildfly.camel.test.common.utils.AvailablePortFinder)1 DMRUtils (org.wildfly.camel.test.common.utils.DMRUtils)1 LogUtils (org.wildfly.camel.test.common.utils.LogUtils)1 Olingo2TestServlet (org.wildfly.camel.test.olingo2.subA.Olingo2TestServlet)1 RSSFeedServlet (org.wildfly.camel.test.rss.subA.RSSFeedServlet)1 CustomerService (org.wildfly.camel.test.soap.subA.CustomerService)1