[jboss-cvs] JBossAS SVN: r109762 - branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 7 13:59:06 EST 2010


Author: rachmatowicz at jboss.com
Date: 2010-12-07 13:59:05 -0500 (Tue, 07 Dec 2010)
New Revision: 109762

Modified:
   branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/ClusteringDefaultsTestCase.java
Log:
Fix up ClusteringDefaultsTestCase to use JBossClusteredTestCase.getAdaptors() instead of JBossTestcase.getServer() (JBAS-8540)

Modified: branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/ClusteringDefaultsTestCase.java
===================================================================
--- branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/ClusteringDefaultsTestCase.java	2010-12-07 18:18:47 UTC (rev 109761)
+++ branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/ClusteringDefaultsTestCase.java	2010-12-07 18:59:05 UTC (rev 109762)
@@ -57,8 +57,12 @@
    public void testDefaults() throws Exception
    {
       ObjectName name = ObjectName.getInstance("jboss.web:type=Manager,host=localhost,path=/http-default");
-      MBeanServerConnection server = this.getServer();
       
+      // JBAS-8540 - this was failing under IPv6 and not IPv4
+      // MBeanServerConnection server = this.getServer();
+      // we are in a clustered test case; non-clustered system properties may not always be defined  
+      MBeanServerConnection server = this.getAdaptors()[0];
+      
       String[] names = new String[] {
             "cacheConfigName",
             "useJK",



More information about the jboss-cvs-commits mailing list