[jboss-cvs] JBossAS SVN: r69195 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jan 22 10:38:59 EST 2008


Author: bstansberry at jboss.com
Date: 2008-01-22 10:38:59 -0500 (Tue, 22 Jan 2008)
New Revision: 69195

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/HAInvokerUnitTestCase.java
Log:
Fix the HAInvokerUnitTestCase
[JBAS-5164] Test that proxy is removed from JNDI after undeploy

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/HAInvokerUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/HAInvokerUnitTestCase.java	2008-01-22 15:38:05 UTC (rev 69194)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/HAInvokerUnitTestCase.java	2008-01-22 15:38:59 UTC (rev 69195)
@@ -26,6 +26,7 @@
 import javax.management.MBeanServerConnection;
 import javax.naming.Context;
 import javax.naming.InitialContext;
+import javax.naming.NamingException;
 
 import org.jboss.invocation.ServiceUnavailableException;
 import org.jboss.test.JBossClusteredTestCase;
@@ -56,18 +57,18 @@
       return JBossClusteredTestCase.getDeploySetup(HAInvokerUnitTestCase.class, "ha-invoker.sar");
    }
 
-//   public void testUnifiedHAProxyFailover()
-//      throws Exception
-//   {
-//      haProxyFailoverTest("jmx/HAServiceUnified");
-//   }
+   public void testUnifiedHAProxyFailover()
+      throws Exception
+   {
+      haProxyFailoverTest("jmx/HAServiceUnified");
+   }
 
-//   public void testPooledHAProxyFailover()
-//      throws Exception
-//   {
-//      haProxyFailoverTest("jmx/HAServicePooled");
-//   }
-//
+   public void testPooledHAProxyFailover()
+      throws Exception
+   {
+      haProxyFailoverTest("jmx/HAServicePooled");
+   }
+
    public void testJRMPHAProxyFailover()
       throws Exception
    {
@@ -99,6 +100,14 @@
       // Undeploy from one node
       reconfigureCluster();
       
+      // Test for JBAS-5164
+      try
+      {
+         ctx.lookup(jndiName);
+         fail("Known issue JBAS-5164.  Proxy not removed from JNDI on undeployed node");
+      }
+      catch (NamingException good) {}
+      
       // Check it still works
       try
       {




More information about the jboss-cvs-commits mailing list