Package org.jboss.shrinkwrap.api.spec

Examples of org.jboss.shrinkwrap.api.spec.WebArchive


      assertExpectedWarResources(environment, unit.getSimpleName(), false, "lib.jar");
   }

   public void testWarWithoutXmlWithLibs() throws Exception
   {
      WebArchive war = createWarWithLibs(false, true, true);
      unit = assertDeploy(war);
     
      E environment = assertSingleEnvironment(WAR_NAME);
      assertExpectedClasses(environment, UIWebBean.class, CrmWebBean.class);
      assertExpectedWarResources(environment, unit.getSimpleName(), false, "lib1.jar", "lib2.jar");
View Full Code Here


      assertExpectedWarResources(environment, unit.getSimpleName(), false, "lib1.jar", "lib2.jar");
   }

   public void testWarWithoutXmlWithLibWithoutXml() throws Exception
   {
      WebArchive war = createWarWithLib(false, false);
      unit = assertDeploy(war);
     
      assertEmptyEnvironment();
   }
View Full Code Here

      assertEmptyEnvironment();
   }

   public void testWarWithoutXmlWithMixedLibs() throws Exception
   {
      WebArchive war = createWarWithLibs(false, true, false);
      unit = assertDeploy(war);
     
      E environment = assertSingleEnvironment(WAR_NAME);
      assertExpectedClasses(environment, UIWebBean.class);
      assertExpectedWarResources(environment, unit.getSimpleName(), false, "lib1.jar");
View Full Code Here

      assertExpectedWarResources(environment, unit.getSimpleName(), false, "lib1.jar");
   }

   public void testWarWithoutXmlWithLibsWithoutXml() throws Exception
   {
      WebArchive war = createWarWithLibs(false, false, false);
      unit = assertDeploy(war);
     
      assertEmptyEnvironment();
   }
View Full Code Here

      assertEmptyEnvironment();
   }

   public void testWarWithoutXml() throws Exception
   {
      WebArchive war = createWar(false);
      unit = assertDeploy(war);
     
      assertEmptyEnvironment();
   }
View Full Code Here

   }

   public void testWarInEar() throws Exception
   {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "warinear.ear");
      WebArchive war = createWar(true);
      ear.addModule(war);
      MockArchiveManifest.addManifest(ear);
      unit = assertDeploy(ear);
     
      E environment = assertSingleEnvironment("warinear.ear/simple.war");
View Full Code Here

   }

   public void testWarsInEar() throws Exception
   {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "warinear.ear");
      WebArchive war = createWar("simple1.war", true, ServletWebBean.class);
      ear.addModule(war);
      war = createWar("simple2.war", true, NotWBJsfBean.class);
      ear.addModule(war);
      MockArchiveManifest.addManifest(ear);
      unit = assertDeploy(ear);
View Full Code Here

   protected abstract void assertWarsInEar();

   public void testMixedWarsInEar() throws Exception
   {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "warinear.ear");
      WebArchive war = createWar("simple1.war", true, ServletWebBean.class);
      ear.addModule(war);
      war = createWar("simple2.war", false, NotWBJsfBean.class);
      ear.addModule(war);
      MockArchiveManifest.addManifest(ear);
      unit = assertDeploy(ear);
View Full Code Here

   }

   public void testWarsWithoutXmlInEar() throws Exception
   {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "warinear.ear");
      WebArchive war = createWar("simple1.war", false, ServletWebBean.class);
      ear.addModule(war);
      war = createWar("simple2.war", false, NotWBJsfBean.class);
      ear.addModule(war);
      MockArchiveManifest.addManifest(ear);
      unit = assertDeploy(ear);
View Full Code Here

   }

   public void testWarWithLibInEar() throws Exception
   {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "warinear.ear");
      WebArchive war = createWarWithLib(true, true);
      ear.addModule(war);
      MockArchiveManifest.addManifest(ear);
      unit = assertDeploy(ear);
     
      E environment = assertSingleEnvironment("warinear.ear/" + WAR_NAME);
View Full Code Here

TOP

Related Classes of org.jboss.shrinkwrap.api.spec.WebArchive

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.