[jboss-cvs] JBossAS SVN: r59198 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Dec 21 10:59:02 EST 2006


Author: dimitris at jboss.org
Date: 2006-12-21 10:58:59 -0500 (Thu, 21 Dec 2006)
New Revision: 59198

Modified:
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/CrossContextCallsTestCase.java
Log:
Commit to fix the build after upgrading commons-httpclient

Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/CrossContextCallsTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/CrossContextCallsTestCase.java	2006-12-21 15:10:12 UTC (rev 59197)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/CrossContextCallsTestCase.java	2006-12-21 15:58:59 UTC (rev 59198)
@@ -148,8 +148,18 @@
       
       result.concat(second);
       
-      // Read the response body.
-      byte[] responseBody = method.getResponseBody();
+      byte[] responseBody = null;
+      try
+      {
+         // Read the response body.
+         responseBody = method.getResponseBody();
+      }
+      catch (IOException e)
+      {
+         e.printStackTrace();
+         fail("HttpClient getResponseBody fails." + e.toString());
+      }
+      
       // Use caution: ensure correct character encoding and is not binary data
       result.concat(new String(responseBody));
    




More information about the jboss-cvs-commits mailing list