Package org.jboss.arquillian.protocol.servlet.v_3

Examples of org.jboss.arquillian.protocol.servlet.v_3.ProtocolDeploymentAppender


*/
public abstract class AbstractModulesProtocolDeploymentPackager implements DeploymentPackager {
    public Archive<?> generateDeployment(TestDeployment testDeployment, Collection<ProtocolArchiveProcessor> processors) {
        Archive<?> archive = testDeployment.getApplicationArchive();

        WebArchive protocol = new ProtocolDeploymentAppender().createAuxiliaryArchive();
        Collection<Archive<?>> auxiliaryArchives = testDeployment.getAuxiliaryArchives();
        Processor processor = new Processor(testDeployment, processors);

        if (archive instanceof EnterpriseArchive) {
            final EnterpriseArchive ear = (EnterpriseArchive) archive;
View Full Code Here


{

   @Test
   public void shouldGenerateDependencies() throws Exception {
     
      Archive<?> archive = new ProtocolDeploymentAppender().createAuxiliaryArchive();
     
      Assert.assertTrue(
            "Should have added web.xml",
            archive.contains(ArchivePaths.create("WEB-INF/web.xml"))
      );
View Full Code Here

{

   @Test
   public void shouldGenerateDependencies() throws Exception {
     
      Archive<?> archive = new ProtocolDeploymentAppender().createAuxiliaryArchive();
     
      Assert.assertTrue(
            "Should have added web.xml",
            archive.contains(ArchivePaths.create("WEB-INF/web.xml"))
      );
View Full Code Here

public class ModulesProtocolDeploymentPackager implements DeploymentPackager {
    public Archive<?> generateDeployment(TestDeployment testDeployment, Collection<ProtocolArchiveProcessor> processors) {
        Archive<?> archive = testDeployment.getApplicationArchive();


        WebArchive protocol = new ProtocolDeploymentAppender().createAuxiliaryArchive();
        Collection<Archive<?>> auxiliaryArchives = testDeployment.getAuxiliaryArchives();
        Processor processor = new Processor(testDeployment, processors);

        if (archive instanceof EnterpriseArchive) {
            final EnterpriseArchive ear = (EnterpriseArchive) archive;
View Full Code Here

{

   @Test
   public void shouldGenerateDependencies() throws Exception {
     
      Archive<?> archive = new ProtocolDeploymentAppender().createAuxiliaryArchive();
     
      Assert.assertTrue(
            "Should have added web.xml",
            archive.contains(ArchivePaths.create("META-INF/web-fragment.xml"))
      );
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.protocol.servlet.v_3.ProtocolDeploymentAppender

Copyright © 2018 www.massapicom. 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.