[jboss-cvs] JBossAS SVN: r85732 - branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 11 09:53:51 EDT 2009


Author: pferraro
Date: 2009-03-11 09:53:51 -0400 (Wed, 11 Mar 2009)
New Revision: 85732

Modified:
   branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java
Log:
Construct target URL from environment parameters.

Modified: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java	2009-03-11 13:36:49 UTC (rev 85731)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java	2009-03-11 13:53:51 UTC (rev 85732)
@@ -49,13 +49,14 @@
 {
    private static final String SERVER_NAME = "jboss.web.deployment:war=/http-sr";
    private static final String SHUTDOWN_METHOD = "stop";
-   private static final String URL = "http://localhost:8080/http-sr/sleep.jsp?sleep=%d";
+   private static final String URL = "%s/http-sr/sleep.jsp?sleep=%d";
    private static final int MAX_THREADS = 2;
    private static final int REQUEST_DURATION = 10000;
    
    ObjectName name;
    MBeanServerConnection server;
    HttpClient client;
+   String baseURL;
    
    private MultiThreadedHttpConnectionManager manager;
    
@@ -85,6 +86,7 @@
       
       this.name = ObjectName.getInstance(SERVER_NAME);
       this.server = this.getAdaptors()[0];
+      this.baseURL = this.getHttpURLs()[0];
 
       this.manager = new MultiThreadedHttpConnectionManager();
       
@@ -166,7 +168,7 @@
       
       public Integer call() throws Exception
       {
-         GetMethod method = new GetMethod(String.format(URL, this.sleep));
+         GetMethod method = new GetMethod(String.format(URL, CleanShutdownTestCase.this.baseURL, this.sleep));
          
          try
          {




More information about the jboss-cvs-commits mailing list