Search in sources :

Example 21 with ManifestBuilder

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

the class LogProfileIntegrationTest method createDeployment.

@Deployment
public static JavaArchive createDeployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "log-profile-tests").addClass(LogUtils.class).setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Logging-Profile", "camel-logging-profile");
        return builder.openStream();
    });
    return archive;
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) LogUtils(org.wildfly.camel.test.common.utils.LogUtils) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 22 with ManifestBuilder

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

the class SOAPIntegrationTest method deployment.

@Deployment
public static JavaArchive deployment() {
    return ShrinkWrap.create(JavaArchive.class, "soap-dataformat-tests").addPackage(Customer.class.getPackage()).addClasses(XMLUtils.class).addAsResource(new StringAsset("Customer"), "org/wildfly/camel/test/jaxb/model/jaxb.index").addAsResource("soap/envelope.xml", "envelope.xml").addAsResource("soap/envelope-1.2-marshal.xml", "envelope-1.2-marshal.xml").addAsResource("soap/envelope-1.2-unmarshal.xml", "envelope-1.2-unmarshal.xml").setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "org.jdom");
        return builder.openStream();
    });
}
Also used : XMLUtils(org.wildfly.camel.test.common.utils.XMLUtils) ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Customer(org.wildfly.camel.test.jaxb.model.Customer) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 23 with ManifestBuilder

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

the class KafkaConsumerIntegrationTest method deployment.

@Deployment
public static JavaArchive deployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "kafka-consumer-tests.jar");
    archive.addPackage(EmbeddedKafkaBroker.class.getPackage());
    archive.addPackage(EmbeddedZookeeper.class.getPackage());
    archive.addClass(TestUtils.class);
    archive.setManifest(new Asset() {

        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.apache.kafka");
            return builder.openStream();
        }
    });
    return archive;
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) InputStream(java.io.InputStream) EmbeddedZookeeper(org.wildfly.camel.test.common.zookeeper.EmbeddedZookeeper) Asset(org.jboss.shrinkwrap.api.asset.Asset) EmbeddedKafkaBroker(org.wildfly.camel.test.common.kafka.EmbeddedKafkaBroker) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 24 with ManifestBuilder

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

the class MQTTIntegrationTest method deployment.

@Deployment
public static JavaArchive deployment() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "mqtt-tests");
    archive.addAsResource(new StringAsset(BrokerSetup.TCP_CONNECTION), "tcp-connection");
    archive.addClasses(TestUtils.class);
    archive.setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "org.fusesource.mqtt");
        return builder.openStream();
    });
    return archive;
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 25 with ManifestBuilder

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

the class JAXBIntegrationTest method deployment.

@Deployment
public static WebArchive deployment() {
    final WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxb-integration-tests.war");
    archive.addPackage(Customer.class.getPackage());
    archive.addClasses(XMLUtils.class);
    archive.addAsResource(new StringAsset("Customer"), "org/wildfly/camel/test/jaxb/model/jaxb.index");
    archive.addAsResource("jaxb/customer.xml", "customer.xml");
    archive.setManifest(new Asset() {

        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.jdom");
            return builder.openStream();
        }
    });
    return archive;
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Customer(org.wildfly.camel.test.jaxb.model.Customer) InputStream(java.io.InputStream) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Asset(org.jboss.shrinkwrap.api.asset.Asset) 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