[jboss-cvs] JBossAS SVN: r94039 - projects/jboss-deployers/branches/Branch_2_0/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:20:30 EDT 2009
Author: jason.greene at jboss.com
Date: 2009-09-25 18:20:29 -0400 (Fri, 25 Sep 2009)
New Revision: 94039
Modified:
projects/jboss-deployers/branches/Branch_2_0/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java
Log:
Add test case for JBDEPLOY-215
Modified: projects/jboss-deployers/branches/Branch_2_0/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java
===================================================================
--- projects/jboss-deployers/branches/Branch_2_0/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java 2009-09-25 20:49:38 UTC (rev 94038)
+++ projects/jboss-deployers/branches/Branch_2_0/deployers-structure-spi/src/test/java/org/jboss/test/deployers/structure/structurebuilder/AbstractStructureBuilderTest.java 2009-09-25 22:20:29 UTC (rev 94039)
@@ -135,6 +135,28 @@
return deployment;
}
+ protected Deployment createdOrderedChildren() 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 = createdOrderedChildren();
+ 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