[jboss-cvs] JBossAS SVN: r68430 - trunk/testsuite/src/main/org/jboss/test/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 19 14:52:14 EST 2007


Author: alesj
Date: 2007-12-19 14:52:14 -0500 (Wed, 19 Dec 2007)
New Revision: 68430

Modified:
   trunk/testsuite/src/main/org/jboss/test/deployers/AbstractDeploymentTest.java
Log:
Use contextMap to do isDeployed lookup.

Modified: trunk/testsuite/src/main/org/jboss/test/deployers/AbstractDeploymentTest.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/deployers/AbstractDeploymentTest.java	2007-12-19 19:51:39 UTC (rev 68429)
+++ trunk/testsuite/src/main/org/jboss/test/deployers/AbstractDeploymentTest.java	2007-12-19 19:52:14 UTC (rev 68430)
@@ -30,8 +30,6 @@
 import org.jboss.deployers.structure.spi.DeploymentUnit;
 import org.jboss.deployment.MainDeployerMBean;
 import org.jboss.test.JBossTestCase;
-import org.jboss.virtual.VirtualFile;
-import org.jboss.virtual.VFS;
 
 /**
  * Abstract deployment test.
@@ -114,19 +112,12 @@
    
    protected boolean isDeployed(String deployment) throws Exception
    {
-      URL deployURL = getVFSDeployURL(deployment);
+      URL deployURL = getDeployURL(deployment);
       String[] sig = { URL.class.getName() };
       Object[] args = {deployURL};
       return invokeMainDeployer("isDeployed", args, sig, Boolean.class);
    }
 
-   protected URL getVFSDeployURL(String deployment) throws Exception
-   {
-      URL url = getDeployURL(deployment);
-      VirtualFile vf = VFS.getRoot(url);
-      return vf.toURL();
-   }
-
    protected void assertNoChildContexts(String deployment) throws Exception
    {
       DeploymentUnit unit = getDeploymentUnit(deployment);




More information about the jboss-cvs-commits mailing list