Package org.jboss.arquillian.container.test.spi

Examples of org.jboss.arquillian.container.test.spi.TestDeployment


   public void shouldHandleEnterpriseArchiveWithMultipleWebArchiveAndOneMarkedWebArchive() throws Exception
   {
       WebArchive testableArchive = Testable.archiveToTest(ShrinkWrap.create(WebArchive.class));

       Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
               new TestDeployment(
                       ShrinkWrap.create(EnterpriseArchive.class, "applicationArchive.ear")
                       .addAsModule(testableArchive)
                       .addAsModule(ShrinkWrap.create(WebArchive.class)),
                       createAuxiliaryArchives()),
                       processors());
View Full Code Here


   @Test(expected = UnsupportedOperationException.class)
   public void shouldThrowExceptionOnEnterpriseArchiveWithMultipleMarkedWebArchives() throws Exception
   {
       new ServletProtocolDeploymentPackager().generateDeployment(
               new TestDeployment(
                       ShrinkWrap.create(EnterpriseArchive.class, "applicationArchive.ear")
                       .addAsModule(Testable.archiveToTest(ShrinkWrap.create(WebArchive.class)))
                       .addAsModule(Testable.archiveToTest(ShrinkWrap.create(WebArchive.class))),
                       createAuxiliaryArchives()),
                       processors());
View Full Code Here

{
   @Test
   public void shouldHandleJavaArchive() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(JavaArchive.class, "applicationArchive.jar"),
                  createAuxiliaryArchives()),
            processors());
     
      Assert.assertTrue(
View Full Code Here

   @Test
   public void shouldHandleWebArchive() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(WebArchive.class, "applicationArchive.war"),
                  createAuxiliaryArchives()),
            processors());
     
      Assert.assertTrue(
View Full Code Here

   @Test
   public void shouldHandleEnterpriseArchive() throws Exception
   {
      Archive<?> archive = new ServletProtocolDeploymentPackager().generateDeployment(
            new TestDeployment(
                  ShrinkWrap.create(EnterpriseArchive.class, "applicationArchive.ear"),
                  createAuxiliaryArchives()),
            processors());
     
      Assert.assertTrue(
View Full Code Here

             * ContianerBase implements it. Check the Archive Interface.. 
             */
         }
         description.setTestableArchive(
               packager.generateDeployment(
                     new TestDeployment(deployment.getDescription(), applicationArchive, auxiliaryArchives),
                     serviceLoader.get().all(ProtocolArchiveProcessor.class)));
      }
   }
View Full Code Here

             * ContianerBase implements it. Check the Archive Interface.. 
             */
         }
         description.setTestableArchive(
               packager.generateDeployment(
                     new TestDeployment(deployment.getDescription(), applicationArchive, auxiliaryArchives),
                     serviceLoader.get().all(ProtocolArchiveProcessor.class)));
      }
   }
View Full Code Here

             * ContianerBase implements it. Check the Archive Interface.. 
             */
         }
         description.setTestableArchive(
               packager.generateDeployment(
                     new TestDeployment(deployment.getDescription(), applicationArchive, auxiliaryArchives),
                     serviceLoader.get().all(ProtocolArchiveProcessor.class)));
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.container.test.spi.TestDeployment

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.