[jboss-cvs] JBossAS SVN: r81904 - projects/jboss-deployers/branches/Branch_2_0/deployers-impl/src/test/java/org/jboss/test/deployers/classloading/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Dec 1 09:07:05 EST 2008


Author: alesj
Date: 2008-12-01 09:07:05 -0500 (Mon, 01 Dec 2008)
New Revision: 81904

Modified:
   projects/jboss-deployers/branches/Branch_2_0/deployers-impl/src/test/java/org/jboss/test/deployers/classloading/test/ModuleRemoveUnitTestCase.java
Log:
Update test.

Modified: projects/jboss-deployers/branches/Branch_2_0/deployers-impl/src/test/java/org/jboss/test/deployers/classloading/test/ModuleRemoveUnitTestCase.java
===================================================================
--- projects/jboss-deployers/branches/Branch_2_0/deployers-impl/src/test/java/org/jboss/test/deployers/classloading/test/ModuleRemoveUnitTestCase.java	2008-12-01 13:53:51 UTC (rev 81903)
+++ projects/jboss-deployers/branches/Branch_2_0/deployers-impl/src/test/java/org/jboss/test/deployers/classloading/test/ModuleRemoveUnitTestCase.java	2008-12-01 14:07:05 UTC (rev 81904)
@@ -29,6 +29,7 @@
 import org.jboss.deployers.client.spi.DeployerClient;
 import org.jboss.deployers.client.spi.Deployment;
 import org.jboss.deployers.plugins.main.MainDeployerImpl;
+import org.jboss.deployers.spi.structure.ContextInfo;
 import org.jboss.deployers.structure.spi.DeploymentContext;
 import org.jboss.deployers.structure.spi.DeploymentUnit;
 import org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext;
@@ -71,12 +72,12 @@
       mainDeployer.deploy(ad);
       try
       {
-         assertAlias(true);
+         assertAlias(true, "A");
       }
       finally
       {
          mainDeployer.undeploy(ad);
-         assertAlias(false);
+         assertAlias(false, "A");
       }
    }
 
@@ -104,11 +105,11 @@
       }
    }
 
-   protected void assertAlias(boolean exists) throws Exception
+   protected void assertAlias(boolean exists, String name) throws Exception
    {
       // this is ugly impl detail
       String controllerId = controller.getClass().getSimpleName() + "[" + System.identityHashCode(controller) + "]";
-      ControllerContext alias = controller.getContext("A_Alias_" + controllerId, null);
+      ControllerContext alias = controller.getContext(name + "_Alias_" + controllerId, null);
       assertEquals(exists, alias != null);
    }
 
@@ -163,4 +164,4 @@
       controller = super.getController();
       return controller;
    }
-}
\ No newline at end of file
+}




More information about the jboss-cvs-commits mailing list