[jboss-cvs] JBossAS SVN: r74271 - trunk/testsuite/src/main/org/jboss/test/ee5client/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 6 14:28:31 EDT 2008


Author: smcgowan at redhat.com
Date: 2008-06-06 14:28:31 -0400 (Fri, 06 Jun 2008)
New Revision: 74271

Modified:
   trunk/testsuite/src/main/org/jboss/test/ee5client/unit/AppClientUnitTestCase.java
Log:
JBAS-5591 - remove hardcoding of localhost so tests run in Hudson env too

Modified: trunk/testsuite/src/main/org/jboss/test/ee5client/unit/AppClientUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/ee5client/unit/AppClientUnitTestCase.java	2008-06-06 16:50:43 UTC (rev 74270)
+++ trunk/testsuite/src/main/org/jboss/test/ee5client/unit/AppClientUnitTestCase.java	2008-06-06 18:28:31 UTC (rev 74271)
@@ -37,7 +37,7 @@
  *
  * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
  * @author Scott.Stark at jboss.org
- * @version $Revision: $
+ * @version $Revision$
  */
 public class AppClientUnitTestCase extends JBossTestCase
 {
@@ -76,7 +76,7 @@
       env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
          "org.jnp.interfaces.NamingContextFactory");
       env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
-      env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
+      env.setProperty(Context.PROVIDER_URL, "jnp://" + getServerHost() + ":1099");
       env.setProperty("j2ee.clientName", applicationClientName);
       return env;
    }




More information about the jboss-cvs-commits mailing list