Package org.jboss.arquillian.testenricher.cdi.client

Examples of org.jboss.arquillian.testenricher.cdi.client.BeansXMLProtocolProcessor


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


      WebArchive deployment = ShrinkWrap.create(WebArchive.class)
            .addAsWebInfResource(new StringAsset(beansXmlContent), "beans.xml");

      WebArchive protocol = deployment.as(WebArchive.class);

      new BeansXMLProtocolProcessor().process(
            new TestDeployment(deployment, new ArrayList<Archive<?>>()), protocol);


      Assert.assertTrue(protocol.contains("WEB-INF/beans.xml"));
View Full Code Here

            .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

      WebArchive protocol = ShrinkWrap.create(WebArchive.class)
         .addAsWebInfResource(new StringAsset(beansXmlContent), "beans.xml");

      new BeansXMLProtocolProcessor().process(
            new TestDeployment(deployment, new ArrayList<Archive<?>>()), protocol);


      Assert.assertTrue(protocol.contains("WEB-INF/beans.xml"));
View Full Code Here

            .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");

      JavaArchive protocol = ShrinkWrap.create(JavaArchive.class)
         .addAsManifestResource(new StringAsset(beansXmlContent), "beans.xml");

      new BeansXMLProtocolProcessor().process(
            new TestDeployment(deployment, new ArrayList<Archive<?>>()), protocol);


      Assert.assertTrue(protocol.contains("META-INF/beans.xml"));
View Full Code Here

      runAndAsset(deployment, ShrinkWrap.create(JavaArchive.class), shouldBeFound, "META-INF/beans.xml");
   }

   public void runAndAsset(Archive<?> deployment, Archive<?> protocol, boolean shouldBeFound, String expectedLocation)
   {
      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 in "+ expectedLocation,
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.testenricher.cdi.client.BeansXMLProtocolProcessor

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.