[jboss-cvs] JBossAS SVN: r111033 - branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 25 10:26:59 EDT 2011


Author: rachmatowicz at jboss.com
Date: 2011-03-25 10:26:56 -0400 (Fri, 25 Mar 2011)
New Revision: 111033

Modified:
   branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientFailoverTestCase.java
Log:
Update failover test to use udpGroup (JBPAPP-5831)

Modified: branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientFailoverTestCase.java
===================================================================
--- branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientFailoverTestCase.java	2011-03-25 13:36:33 UTC (rev 111032)
+++ branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/HotRodClientFailoverTestCase.java	2011-03-25 14:26:56 UTC (rev 111033)
@@ -102,6 +102,7 @@
 
 	private ObjectName SERVER_OBJ_NAME = null ;
 	private String[] servers = null ;
+	private String udpGroup = null ;
 
 	private String hotRodServerList = null ;
 
@@ -148,6 +149,10 @@
 		String failingHost = System.getProperty("jbosstest.cluster.node1") ;
 		if (failingHost == null)
 			throw new Exception("System property jbosstest.cluster.node1 not set") ;
+		
+		udpGroup = System.getProperty("jbosstest.udpGroup") ;
+		if (udpGroup == null)
+			throw new Exception("System property jbosstest.udpGroup not set") ;
 
 		// set the server configuration used by ScriptsTestBase
 		System.setProperty("jbosstest.server.config", "datagrid-failover-1") ;
@@ -167,7 +172,7 @@
 	public void tearDown() throws Exception {
 		super.tearDown();
 	}
-
+	
 	/*
 	 * Tests the startup of the second server
 	 */
@@ -249,7 +254,7 @@
 		
 		// build the shell command to execute
 		String command = "run" ;
-		String options = " -c " + getServerConfig() + " -b " + servers[1]   ;  
+		String options = " -c " + getServerConfig() + " -b " + servers[1] + " -u " + getUdpGroup() ;  
 		String args = null ;
 
 		String[] shellCommand = getShellCommand(command, options, args) ;
@@ -311,7 +316,6 @@
 
 			fail("Server failed to die") ;
 		}
-				
 	}
 	
 
@@ -340,5 +344,9 @@
 		System.out.println(getAsyncShellScriptExecutor().getError()) ;
 		System.out.println("========================================================================") ;	   
 	}
+	
+	private String getUdpGroup() {
+		return udpGroup ;
+	}
 }
 



More information about the jboss-cvs-commits mailing list