Package org.jboss.shrinkwrap.api.spec

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


      // assertCannotLoadBDA(deployment1, notWBJsfBeanClass);
   }
  
   public void testWarWithLib() throws Exception
   {
      WebArchive war = createWarWithLib(true, true);
      DeploymentUnit unit = assertDeploy(war);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Class<?> uiWebBeanClass = getClass(UIWebBean.class, unit);
      Deployment deployment = initializeDeploymentBean();
     
View Full Code Here


      assertExpectedClasses(bda, ServletWebBean.class, UIWebBean.class);
   }
  
   public void testWarWithLibWithoutXml() throws Exception
   {
      WebArchive war = createWarWithLib(true, false);
      DeploymentUnit unit = assertDeploy(war);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Class<?> uiWebBeanClass = getClass(UIWebBean.class, unit);
      Deployment deployment = initializeDeploymentBean();
     
View Full Code Here

      assertExpectedClasses(bda, ServletWebBean.class, UIWebBean.class);
   }
  
   public void testWarWithoutXmlWithLib() throws Exception
   {
      WebArchive war = createWarWithLib(false, true);
      DeploymentUnit unit = assertDeploy(war);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Class<?> uiWebBeanClass = getClass(UIWebBean.class, unit);
      Deployment deployment = initializeDeploymentBean();
     
View Full Code Here

      assertExpectedClasses(bda, ServletWebBean.class, UIWebBean.class);
   }
  
   public void testWarWithMixedLibs() throws Exception
   {
      WebArchive war = createWarWithLibs(true, true, false);
      DeploymentUnit unit = assertDeploy(war);
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit);
      Class<?> uiWebBeanClass = getClass(UIWebBean.class, unit);
      Class<?> crmWebBeanClass = getClass(CrmWebBean.class, unit);
      Deployment deployment = initializeDeploymentBean();
View Full Code Here

  

   public void testWarInEars() throws Exception
   {
      EnterpriseArchive ear1 = ShrinkWrap.create(EnterpriseArchive.class, "warinear1.ear");
      WebArchive war1 = createWar(true);
      ear1.addModule(war1);
      MockArchiveManifest.addManifest(ear1);
      /*DeploymentUnit unit = */assertDeploy(ear1);
      //Class<?> servletWebBeanClass = getClass(ServletWebBean.class, unit.getChildren().iterator().next());
      //Deployment deployment1 = initializeDeploymentBean(unit));
     
      EnterpriseArchive ear2 = ShrinkWrap.create(EnterpriseArchive.class, "warinear2.ear");
      WebArchive war2 = createWar(WAR_NAME, true, NotWBJsfBean.class);
      ear2.addModule(war2);
      MockArchiveManifest.addManifest(ear2);
      /*unit = */assertDeploy(ear2);
     
      // assertion deleted as loadBDA implementation does not check for unreachable classes anymore
View Full Code Here

   }

   public void testWarsInEar() throws Exception
   {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "warinear.ear");
      WebArchive war1 = createWar("simple1.war", true, ServletWebBean.class);
      ear.addModule(war1);
      WebArchive war2 = createWar("simple2.war", true, NotWBJsfBean.class);
      ear.addModule(war2);
      MockArchiveManifest.addManifest(ear);
      DeploymentUnit unit = assertDeploy(ear);
      Iterator<DeploymentUnit> iterator = unit.getChildren().iterator();
      DeploymentUnit unit1 = iterator.next();
View Full Code Here

      JavaArchive ejbJar = createEjbJar(true);
      DeploymentUnit unit = assertDeploy(ejbJar);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Deployment deployment1 = initializeDeploymentBean(unit);
      // simple.war
      WebArchive war = createWar(true);
      unit = assertDeploy(war);
     
      Deployment deployment2 = initializeDeploymentBean(unit);
     
      // assertion deleted as loadBDA implementation does not check for unreachable classes anymore
View Full Code Here

      // ejb.jar
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_NAME);
      JavaArchive ejbJar = createEjbJar(true);
      ear.addModule(ejbJar);
      // simple.war
      WebArchive war = createWar(true);
      ear.addModule(war);
      MockArchiveManifest.addManifest(ear);
      DeploymentUnit unit = assertDeploy(ear);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Iterator<DeploymentUnit> iterator = unit.getChildren().iterator();
View Full Code Here

      MockArchiveManifest.addManifest(ear);
      DeploymentUnit unit = assertDeploy(ear);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Deployment deployment1 = initializeDeploymentBean(unit);
      // simple.war
      WebArchive war = createWar(true);
      unit = assertDeploy(war);
     
      Deployment deployment2 = initializeDeploymentBean(unit);
     
      // assertion deleted as loadBDA implementation does not check for unreachable classes anymore
View Full Code Here

      DeploymentUnit unit = assertDeploy(ejbEar);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Deployment deployment1 = initializeDeploymentBean(unit);
      // war.ear
      EnterpriseArchive warEar = ShrinkWrap.create(EnterpriseArchive.class, "war.ear");
      WebArchive war = createWarWithLib(true, false);
      warEar.addModule(war);
      MockArchiveManifest.addManifest(warEar);
      unit = assertDeploy(warEar);
      DeploymentUnit warUnit = unit.getChildren().iterator().next();
      Class<?> servletWebBeanClass = getClass(ServletWebBean.class, warUnit);
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.