Search in sources :

Example 11 with ManifestBuilder

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

the class FopIntegrationTest method createDeployment.

@Deployment
public static JavaArchive createDeployment() {
    return ShrinkWrap.create(JavaArchive.class, "camel-fop-tests.jar").addAsResource("fop/data.xml", "data.xml").addAsResource("fop/template.xsl", "template.xsl").addAsResource("fop/factory.xml", "factory.xml").setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "org.apache.pdfbox");
        return builder.openStream();
    });
}
Also used : ManifestBuilder(org.jboss.gravia.resource.ManifestBuilder) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 12 with ManifestBuilder

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

the class JcrIntegrationTest method createDeployment.

@Deployment
public static JavaArchive createDeployment() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-jcr-tests.jar");
    archive.addAsResource("jcr/repository-simple-security.xml");
    archive.addClasses(FileUtils.class, IOUtils.class);
    archive.setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "org.apache.jackrabbit");
        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 13 with ManifestBuilder

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

the class SOAPServiceInterfaceStrategyIntegrationTest method createDeployment.

@Deployment
public static WebArchive createDeployment() {
    return ShrinkWrap.create(WebArchive.class, "camel-soap-sis-tests.war").addClasses(XMLUtils.class, Customer.class, CustomerService.class).addAsResource(new StringAsset("Customer"), "org/wildfly/camel/test/common/types/jaxb.index").addAsResource("soap/envelope-sis.xml", "envelope.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) CustomerService(org.wildfly.camel.test.soap.subA.CustomerService) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) Customer(org.wildfly.camel.test.common.types.Customer) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 14 with ManifestBuilder

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

the class StaxIntegrationTest method createDeployment.

@Deployment
public static JavaArchive createDeployment() {
    return ShrinkWrap.create(JavaArchive.class, "camel-stax-tests.jar").addClasses(ElementCountingHandler.class, Record.class, Records.class).addAsResource("stax/" + RECORDS_XML, RECORDS_XML).setManifest(() -> {
        ManifestBuilder builder = new ManifestBuilder();
        builder.addManifestHeader("Dependencies", "org.jdom");
        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 15 with ManifestBuilder

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

the class KafkaProducerIntegrationTest method deployment.

@Deployment
public static JavaArchive deployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "kafka-producer-tests.jar");
    archive.addPackage(EmbeddedKafkaBroker.class.getPackage());
    archive.addPackage(EmbeddedZookeeper.class.getPackage());
    archive.addClasses(SimpleKafkaSerializer.class, SimpleKafkaPartitioner.class, 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)

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