[jboss-cvs] JBossAS SVN: r57874 - projects/microcontainer/trunk/deployers/src/tests/org/jboss/test/deployers/structure/explicit/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 26 23:41:59 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-10-26 23:41:57 -0400 (Thu, 26 Oct 2006)
New Revision: 57874
Modified:
projects/microcontainer/trunk/deployers/src/tests/org/jboss/test/deployers/structure/explicit/test/DeclaredStructureUnitTestCase.java
Log:
Use the createDeploymentPathMap method
Modified: projects/microcontainer/trunk/deployers/src/tests/org/jboss/test/deployers/structure/explicit/test/DeclaredStructureUnitTestCase.java
===================================================================
--- projects/microcontainer/trunk/deployers/src/tests/org/jboss/test/deployers/structure/explicit/test/DeclaredStructureUnitTestCase.java 2006-10-27 03:41:33 UTC (rev 57873)
+++ projects/microcontainer/trunk/deployers/src/tests/org/jboss/test/deployers/structure/explicit/test/DeclaredStructureUnitTestCase.java 2006-10-27 03:41:57 UTC (rev 57874)
@@ -117,7 +117,7 @@
assertTrue(url, rootCPSet.contains(url));
}
- Map<String, DeploymentContext> pathMap = buildPathMap(root);
+ Map<String, DeploymentContext> pathMap = createDeploymentPathMap(root);
// Validate the sub.jar context info
DeploymentContext subJar = pathMap.get("complex.deployer/sub.jar");
assertNotNull("complex.deployer/sub.jar", subJar);
@@ -155,21 +155,4 @@
assertCandidateContexts(expected, actual);
}
- /**
- * Create a map of vfs relative paths to the child DeploymentContexts.
- * @param root
- * @return
- */
- protected Map<String, DeploymentContext> buildPathMap(DeploymentContext root)
- {
- HashMap<String, DeploymentContext> pathMap = new HashMap<String, DeploymentContext>();
- Set<DeploymentContext> children = root.getChildren();
- for(DeploymentContext ctx : children)
- {
- String path = ctx.getRoot().getPathName();
- pathMap.put(path, ctx);
- }
- return pathMap;
- }
-
}
More information about the jboss-cvs-commits
mailing list