Package org.jboss.deployers.structure.spi

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


   /** 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

  
   /** 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

  
   /** 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

   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

   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

   }
  
   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

   }
  
   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

      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

      ModuleMetaData conflict = new ModuleMetaData();
      conflict.setName(SIMPLE_DU_JAR_PATH);
      conflict.setUniqueName(SIMPLE_TRIMMED_PATH);
      modules.add(conflict);
     
      DeploymentUnit unit = getDeploymentUnitProxy(duih);
      testee.deploy(unit);
      assertEquals(SIMPLE_DU_WAR_PATH, getSingleAttachment(duih).getModuleName());
      assertEquals(SIMPLE_DU_WAR_PATH, duih.getModuleName(NamedModule.class));
     
      ModuleMetaData modmd = getModuleMetaData(duih);
View Full Code Here

TOP

Related Classes of org.jboss.deployers.structure.spi.DeploymentUnit

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.