[jboss-cvs] JBossAS SVN: r94041 - projects/jboss-deployers/trunk/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 25 18:24:04 EDT 2009


Author: jason.greene at jboss.com
Date: 2009-09-25 18:24:04 -0400 (Fri, 25 Sep 2009)
New Revision: 94041

Modified:
   projects/jboss-deployers/trunk/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java
Log:
Merge test for JBDEPLOY-215 from 94039-94040

Modified: projects/jboss-deployers/trunk/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java	2009-09-25 22:21:49 UTC (rev 94040)
+++ projects/jboss-deployers/trunk/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java	2009-09-25 22:24:04 UTC (rev 94041)
@@ -135,6 +135,28 @@
       return deployment;
    }
 
+   protected Deployment createOrderedChildren() throws Exception
+   {
+      DeploymentFactory factory = getDeploymentFactory();
+      Deployment deployment = createDeployment(factory);
+      ContextInfo ctx = factory.addContext(deployment, "child1");
+      ctx.setRelativeOrder(1);
+      ctx = factory.addContext(deployment, "child2");
+      ctx.setRelativeOrder(2);
+
+      return deployment;
+   }
+
+   public void testOrderedChildren() throws Exception
+   {
+      Deployment deployment = createOrderedChildren();
+      DeploymentContext context = build(deployment);
+      assertEquals("child1", context.getChildren().get(0).getRelativePath());
+      assertEquals("child2", context.getChildren().get(1).getRelativePath());
+
+      checkDeployment(context, deployment);
+   }
+
    public void testMetaDataLocation() throws Exception
    {
       Deployment deployment = createMetaDataLocation();




More information about the jboss-cvs-commits mailing list