Examples of TestDeployment


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

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

   @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

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

{
   @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

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

   @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

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

   @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

Examples of org.jboss.arquillian.spi.TestDeployment

      applyApplicationProcessors(applicationArchive, testCase);
     
      List<Archive<?>> auxiliaryArchives = loadAuxiliaryArchives();
      applyAuxiliaryProcessors(auxiliaryArchives);

      return packager.generateDeployment(new TestDeployment(applicationArchive, auxiliaryArchives));
   }
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

      applyApplicationProcessors(applicationArchive, testCase);
     
      List<Archive<?>> auxiliaryArchives = loadAuxiliaryArchives();
      applyAuxiliaryProcessors(auxiliaryArchives);

      TestDeployment deployment = new TestDeployment(applicationArchive, auxiliaryArchives);
      context.add(TestDeployment.class, deployment);
      return packager.generateDeployment(deployment);
   }
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

   public void shouldNotAddBeansXMLIfArchivesAreEqual()
   {
      WebArchive protocol = ShrinkWrap.create(WebArchive.class);

      new BeansXMLProtocolProcessor().process(
            new TestDeployment(protocol, new ArrayList<Archive<?>>()), protocol);
     
     
      Assert.assertFalse(protocol.contains("WEB-INF/beans.xml"));
   }
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

   public void runAndAssert(Archive<?> deployment, boolean shouldBeFound)
   {
      WebArchive protocol = ShrinkWrap.create(WebArchive.class);
     
      new BeansXMLProtocolProcessor().process(
            new TestDeployment(deployment, new ArrayList<Archive<?>>()), protocol);
     
      System.out.println(protocol.toString(true));
      Assert.assertEquals(
            "Verify beans.xml was " + (!shouldBeFound ? "not ":"") + "found",
            shouldBeFound, protocol.contains("WEB-INF/beans.xml"));
View Full Code Here

Examples of org.jboss.arquillian.spi.TestDeployment

{
   @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
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.