[jboss-cvs] JBossAS SVN: r68249 - trunk/testsuite/src/main/org/jboss/test/util/web.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Dec 13 13:12:03 EST 2007


Author: anil.saldhana at jboss.com
Date: 2007-12-13 13:12:02 -0500 (Thu, 13 Dec 2007)
New Revision: 68249

Modified:
   trunk/testsuite/src/main/org/jboss/test/util/web/HttpUtils.java
Log:
JBAS-5075: get the work done in JBAS-1864, fix localhost to use IP binding

Modified: trunk/testsuite/src/main/org/jboss/test/util/web/HttpUtils.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/util/web/HttpUtils.java	2007-12-13 17:43:13 UTC (rev 68248)
+++ trunk/testsuite/src/main/org/jboss/test/util/web/HttpUtils.java	2007-12-13 18:12:02 UTC (rev 68249)
@@ -45,8 +45,8 @@
 public class HttpUtils
 {
    private static Logger log = Logger.getLogger(HttpUtils.class);
-   private static String baseURL = "http://jduke:theduke@localhost:" + Integer.getInteger("web.port", 8080) + "/"; 
-   private static String baseURLNoAuth = "http://localhost:" + Integer.getInteger("web.port", 8080) + "/"; 
+   private static String baseURL = "http://jduke:theduke@" + System.getProperty("jbosstest.server.host", "localhost") + ":" + Integer.getInteger("web.port", 8080) + "/"; 
+   private static String baseURLNoAuth = "http://" + System.getProperty("jbosstest.server.host", "localhost") + ":" + Integer.getInteger("web.port", 8080) + "/"; 
 
    public static final int GET = 1;
    public static final int POST = 2;
@@ -62,7 +62,7 @@
    }
    public static String getBaseURL(String username, String password)
    {
-      String url = "http://"+username+":"+password+"@localhost:"
+      String url = "http://"+username+":"+password+"@" + System.getProperty("jbosstest.server.host", "localhost") + ":"
          + Integer.getInteger("web.port", 8080) + "/";
       return url;
    }




More information about the jboss-cvs-commits mailing list