[jboss-cvs] JBossAS SVN: r65419 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Sep 15 09:56:20 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-09-15 09:56:20 -0400 (Sat, 15 Sep 2007)
New Revision: 65419
Modified:
trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/TreeCacheSSOClusterManagerUnitTestCase.java
Log:
Run test bound to localhost
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/TreeCacheSSOClusterManagerUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/TreeCacheSSOClusterManagerUnitTestCase.java 2007-09-15 10:23:23 UTC (rev 65418)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/TreeCacheSSOClusterManagerUnitTestCase.java 2007-09-15 13:56:20 UTC (rev 65419)
@@ -61,6 +61,8 @@
private static IpAddress LOCAL_ADDRESS;
private static IpAddress REMOTE_ADDRESS;
+ private String bindAddress;
+
public TreeCacheSSOClusterManagerUnitTestCase(String name)
{
super(name);
@@ -70,10 +72,25 @@
protected void setUp() throws Exception
{
super.setUp();
+
+ bindAddress = System.getProperty("jgroups.bind.address");
+ System.setProperty("jgroups.bind.address", "127.0.0.1");
+
LOCAL_ADDRESS = new IpAddress("127.0.0.1", 11111);
REMOTE_ADDRESS = new IpAddress("192.168.0.1", 11111);
}
+ @Override
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+
+ if (bindAddress == null)
+ System.clearProperty("jgroups.bind.address");
+ else
+ System.setProperty("jgroups.bind.address", bindAddress);
+ }
+
public void testPojoCacheIntegration() throws Exception
{
log.debug("+++ testPojoCacheIntegration()");
More information about the jboss-cvs-commits
mailing list