Author: ehillenius
Date: Fri Apr 13 18:40:30 2007
New Revision: 528734

URL: http://svn.apache.org/viewvc?view=rev&rev=528734
Log:
enable handling larger strings

Modified:
    
incubator/wicket/branches/wicket-1.x/testing/wicket-threadtest/src/main/java/org/apache/wicket/threadtest/tester/SimpleGetCommand.java

Modified: 
incubator/wicket/branches/wicket-1.x/testing/wicket-threadtest/src/main/java/org/apache/wicket/threadtest/tester/SimpleGetCommand.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/testing/wicket-threadtest/src/main/java/org/apache/wicket/threadtest/tester/SimpleGetCommand.java?view=diff&rev=528734&r1=528733&r2=528734
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/testing/wicket-threadtest/src/main/java/org/apache/wicket/threadtest/tester/SimpleGetCommand.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/testing/wicket-threadtest/src/main/java/org/apache/wicket/threadtest/tester/SimpleGetCommand.java
 Fri Apr 13 18:40:30 2007
@@ -23,6 +23,7 @@
 import org.apache.commons.httpclient.methods.GetMethod;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.wicket.util.io.Streams;
 
 public class SimpleGetCommand extends AbstractGetCommand {
 
@@ -86,7 +87,7 @@
                        int code = client.executeMethod(method);
                        if (code != 200) {
                                log.error("ERROR! code: " + code);
-                               log.error(method.getResponseBodyAsString());
+                               
log.error(Streams.readString(method.getResponseBodyAsStream()));
                                // TODO rather than failing, just gather 
statistics
                                // throw new Exception(new 
String(method.getResponseBody()));
                        }


Reply via email to