[jboss-cvs] JBossAS SVN: r59199 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/web/jk/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Dec 21 11:01:32 EST 2006
Author: dimitris at jboss.org
Date: 2006-12-21 11:01:30 -0500 (Thu, 21 Dec 2006)
New Revision: 59199
Modified:
branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/web/jk/test/JvmRouteURLRewritingTestCase.java
Log:
Commit to fix the build after upgrading commons-httpclient
Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/web/jk/test/JvmRouteURLRewritingTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/web/jk/test/JvmRouteURLRewritingTestCase.java 2006-12-21 15:58:59 UTC (rev 59198)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/web/jk/test/JvmRouteURLRewritingTestCase.java 2006-12-21 16:01:30 UTC (rev 59199)
@@ -107,9 +107,19 @@
// Check the session id has changed
assertFalse("Session id has changed", sessionId.equals(id));
}
-
+
// Read the response body and confirm the URL was properly encoded.
- 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());
+ }
String body = new String(responseBody);
String expectedURL = "accessSession.jsp;jsessionid=" + id;
assertTrue("URL encoded properly: " + body, body.indexOf(expectedURL) > -1);
More information about the jboss-cvs-commits
mailing list