Package org.jboss.test.deployers.vfs.deployer.validate.support

Examples of org.jboss.test.deployers.vfs.deployer.validate.support.StructureOMFDeployer


   {
      VirtualFile file = getVirtualFile("/structure/explicit", "complex.deployer");
      VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
      deployment.setMetaDataPath(Collections.singletonList("META-INF"));
      VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
      Deployer deployer = new StructureOMFDeployer();

      deployer.deploy(unit);
      try
      {
         StructureMetaData metaData = unit.getAttachment(StructureMetaData.class);
         assertNotNull(metaData);
      }
      finally
      {
         deployer.undeploy(unit);
      }
   }
View Full Code Here


   {
      VirtualFile file = getVirtualFile("/structure/explicit", "comparator.jar");
      VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
      deployment.setMetaDataPath(Collections.singletonList("META-INF"));
      VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
      Deployer deployer = new StructureOMFDeployer();

      deployer.deploy(unit);
      try
      {
         StructureMetaData metaData = unit.getAttachment(StructureMetaData.class);
         assertNotNull(metaData);
         assertComparator(metaData, "", "org.jboss.test.deployment.test.SomeDeploymentComparatorTop");
         assertComparator(metaData, "sub.jar", "org.jboss.test.deployment.test.SomeDeploymentComparatorSub");
         assertComparator(metaData, "x.war", "org.jboss.test.deployment.test.SomeDeploymentComparatorX");
      }
      finally
      {
         deployer.undeploy(unit);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.deployers.vfs.deployer.validate.support.StructureOMFDeployer

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.