[jboss-cvs] JBossAS SVN: r97847 - in branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite: src/main/org/jboss/test/jaxr/scout and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 15 10:32:41 EST 2009


Author: rachmatowicz at jboss.com
Date: 2009-12-15 10:32:40 -0500 (Tue, 15 Dec 2009)
New Revision: 97847

Modified:
   branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/build.xml
   branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/jaxr/scout/JaxrBaseTestCase.java
Log:
Fix URL use in JAXR test case (JBPAPP-2997)

Modified: branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/build.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/build.xml	2009-12-15 15:08:32 UTC (rev 97846)
+++ branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/build.xml	2009-12-15 15:32:40 UTC (rev 97847)
@@ -3012,7 +3012,7 @@
       <sysproperty key="jaxr.query.url" value="http://${node0.url}:8080/juddi/inquiry"/>
       <sysproperty key="jaxr.publish.url" value="http://${node0.url}:8080/juddi/publish"/>
       <sysproperty key="juddi.proxy.transportClass" value="org.jboss.jaxr.juddi.transport.SaajTransport"/>
-      <sysproperty key="host.name" value="${node0}"/>
+      <sysproperty key="host.name.url" value="${node0.url}"/>
       <sysproperty key="jndi.bind.name" value="JAXR"/>
       <sysproperty key="jaxr.debug" value="true"/>
       <!-- Pass along any jbosstest.* system properties -->

Modified: branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/jaxr/scout/JaxrBaseTestCase.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/jaxr/scout/JaxrBaseTestCase.java	2009-12-15 15:08:32 UTC (rev 97846)
+++ branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/jaxr/scout/JaxrBaseTestCase.java	2009-12-15 15:32:40 UTC (rev 97847)
@@ -501,13 +501,14 @@
 
     protected InitialContext getClientContext() throws NamingException
     {
-        String hostname = System.getProperty("host.name", "localhost");
-        if (hostname == null)
-            throw new IllegalStateException("host.name system property not present");
+    	// JBPAPP-2997
+        String hostnameForURL = System.getProperty("host.name.url", "localhost");
+        if (hostnameForURL == null)
+            throw new IllegalStateException("host.name.url system property not present");
         Properties env = new Properties();
         env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
         env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
-        env.setProperty(Context.PROVIDER_URL, "jnp://" + hostname + ":1099");
+        env.setProperty(Context.PROVIDER_URL, "jnp://" + hostnameForURL + ":1099");
         return new InitialContext(env);
     }
 




More information about the jboss-cvs-commits mailing list