Examples of DeploymentUnit


Examples of org.jboss.deployers.structure.spi.DeploymentUnit

  
   /** Ensure we handle DUs that we're not interested in */
   public void testNoNamedModules() throws DeploymentException
   {
      DUIH duih = new DUIH();
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      assertNull(duih.getNamedModuleMetaData(NamedModule.class));
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

   public void testConfiguredName() throws DeploymentException
   {
      DUIH duih = getSingleAttachmentDUIH();
      NamedModule md = getSingleAttachment(duih);
      md.setModuleName(TEST);
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      assertEquals(TEST, md.getModuleName());
      assertEquals(TEST, duih.getModuleName(NamedModule.class));
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

   /** DU has 1 MD object that specified its name; others that didn't */
   public void testOneConfiguredNameMultipleAttachments() throws DeploymentException
   {
      DUIH duih = getMultiAttachmentDUIH();
      duih.getNamedModuleMetaData(JBossWebMetaData.class).setModuleName(TEST);
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      for (Class<? extends NamedModule> type : standardTypes)
      {
         assertEquals("Module name correct for " + type, TEST, duih.getModuleName(type));
      }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

  
   /** Basic case where there's 1 MD object that did not specify its name */
   public void testNoConfiguredName() throws DeploymentException
   {
      DUIH duih = getSingleAttachmentDUIH();
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      assertEquals(SIMPLE, getSingleAttachment(duih).getModuleName());
      assertEquals(SIMPLE, duih.getModuleName(NamedModule.class));
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

  
   /** DU has multiple attachments none of which specified its name */
   public void testNoConfiguredNameMultipleAttachments() throws DeploymentException
   {
      DUIH duih = getMultiAttachmentDUIH();
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      for (Class<? extends NamedModule> type : standardTypes)
      {
         assertEquals("Module name correct for " + type, SIMPLE, duih.getModuleName(type));
      }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

   public void testConfiguredNameWithParent() throws DeploymentException
   {
      DUIH duih = getDUIHWithParent(false);
      NamedModule md = getSingleAttachment(duih);
      md.setModuleName(TEST);
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      assertEquals(TEST, md.getModuleName());
      assertEquals(TEST, duih.getModuleName(NamedModule.class));
     
      ModuleMetaData modmd = getModuleMetaData(duih);
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

   public void testOneConfiguredNameMultipleAttachmentsWithParent() throws DeploymentException
   {
      DUIH duih = getDUIHWithParent(true);
      duih.getNamedModuleMetaData(JBossWebMetaData.class).setModuleName(TEST);
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      for (Class<? extends NamedModule> type : standardTypes)
      {
         assertEquals("Module name correct for " + type, TEST, duih.getModuleName(type));
      }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

   }
  
   public void testNoConfiguredNameWithParent() throws DeploymentException
   {
      DUIH duih = getDUIHWithParent(false);
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      assertEquals(SIMPLE_TRIMMED_PATH, getSingleAttachment(duih).getModuleName());
      assertEquals(SIMPLE_TRIMMED_PATH, duih.getModuleName(NamedModule.class));
     
      ModuleMetaData modmd = getModuleMetaData(duih);
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

   }
  
   public void testNoConfiguredNameMultipleAttachmentsWithParent() throws DeploymentException
   {
      DUIH duih = getDUIHWithParent(true);
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      for (Class<? extends NamedModule> type : standardTypes)
      {
         assertEquals("Module name correct for " + type, SIMPLE_TRIMMED_PATH, duih.getModuleName(type));
      }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnit

      ModuleMetaData conflict = new ModuleMetaData();
      conflict.setName(SIMPLE_DU_JAR_PATH);
      conflict.setUniqueName(TEST);
      modules.add(conflict);
     
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      assertEquals(SIMPLE_TRIMMED_PATH, md.getModuleName());
      assertEquals(SIMPLE_TRIMMED_PATH, duih.getModuleName(NamedModule.class));
     
      ModuleMetaData modmd = getModuleMetaData(duih);
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.