Examples of exportAsString()


Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

        WebArchive archive = ShrinkWrap.create(WebArchive.class, TEST_NAME + ".war")
                .addClass(RemoteServlet.class)
                .addClass(CompanyRemote.class)
                .addClass(DefaultCompany.class)
                .setWebXML(new StringAsset(descriptor.exportAsString()));



        return archive;
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

                .addClass(RemoteServletSessionListener.class)
                .addClass(ServletToCheckListener.class)
                .addClass(CompanyRemote.class)
                .addClass(DefaultCompany.class)
                .addClass(ContextAttributeName.class)
                .setWebXML(new StringAsset(descriptor.exportAsString()))
                .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));



        return archive;
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

                .addClass(Company.class)
                .addClass(DefaultCompany.class)
                .addClass(SuperMarket.class)
                .addClass(Code.class)
                .addClass(ContextAttributeName.class)
                .setWebXML(new StringAsset(descriptor.exportAsString()))
                .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));



        return archive;
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

                .addClass(PersistenceServletSessionListener.class)
                .addClass(ServletToCheckListener.class)
                .addClass(Address.class)
                .addClass(ContextAttributeName.class)
                .addAsManifestResource("persistence.xml", ArchivePaths.create("persistence.xml"))
                .setWebXML(new StringAsset(descriptor.exportAsString()))
                .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));



        return archive;
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

                .addClass(PersistenceServlet.class)
                .addClass(Address.class)
                .addClass(Runner.class)
                .addAsLibraries(JarLocation.jarLocation(Test.class))
                .addAsManifestResource("persistence.xml", ArchivePaths.create("persistence.xml"))
                .setWebXML(new StringAsset(descriptor.exportAsString()));



        return archive;
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

                .addClass(Stratocaster.class)
                .addClass(Pickup.class)
                .addClass(PickupEditor.class)
                .addClass(Style.class)
                .addAsLibraries(JarLocation.jarLocation(Test.class))
                .setWebXML(new StringAsset(descriptor.exportAsString()));



        return archive;
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

        WebAppDescriptor descriptor = Descriptors.create(WebAppDescriptor.class)
                .version("3.0");
        decorateDescriptor(descriptor);

        WebArchive archive = ShrinkWrap.create(WebArchive.class, getTestContextName() + ".war")
                .setWebXML(new StringAsset(descriptor.exportAsString()))
                .addAsLibraries(JarLocation.jarLocation(Test.class))
                .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
       
        if (archiveClasses != null) {
            for (Class c: archiveClasses) {
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

                .addClass(CompanyLocal.class)
                .addClass(Company.class)
                .addClass(DefaultCompany.class)
                .addClass(OtherCompany.class)
                .addClass(SuperMarket.class)
                .setWebXML(new StringAsset(descriptor.exportAsString()));
    }

    private void validateTest(String expectedOutput) throws IOException {
        final InputStream is = new URL("http://localhost:" + System.getProperty("tomee.http.port", "11080") + "/" + TEST_NAME + "/" + TEST_NAME).openStream();
        final ByteArrayOutputStream os = new ByteArrayOutputStream();
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

        WebArchive archive = ShrinkWrap.create(WebArchive.class, TEST_NAME + ".war")
                .addClass(TestRun.class)
                .addClass(SimpleServlet.class)
                .addClass(Car.class)
                .setWebXML(new StringAsset(descriptor.exportAsString()))
                .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));



        return archive;
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor.exportAsString()

                .addClass(Company.class)
                .addClass(DefaultCompany.class)
                .addClass(SuperMarket.class)
                .addClass(Code.class)
                .addClass(ContextAttributeName.class)
                .setWebXML(new StringAsset(descriptor.exportAsString()))
                .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));



        return archive;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.