Updated Branches:
  refs/heads/master 0eeb6c845 -> 34c21699d

WICKET-5392 Response is no longer flushed, so make sure
ProblematicResponse fails on writing byte array

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/34c21699
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/34c21699
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/34c21699

Branch: refs/heads/master
Commit: 34c21699df27d70ea92dbac8e4f317b32f0a4b2c
Parents: 0eeb6c8
Author: svenmeier <[email protected]>
Authored: Thu Oct 31 19:32:13 2013 +0100
Committer: svenmeier <[email protected]>
Committed: Thu Oct 31 19:32:13 2013 +0100

----------------------------------------------------------------------
 .../apache/wicket/protocol/http/ResponseIOExceptionTest.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/34c21699/wicket-core/src/test/java/org/apache/wicket/protocol/http/ResponseIOExceptionTest.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/test/java/org/apache/wicket/protocol/http/ResponseIOExceptionTest.java
 
b/wicket-core/src/test/java/org/apache/wicket/protocol/http/ResponseIOExceptionTest.java
index 426d209..f8b5cf1 100644
--- 
a/wicket-core/src/test/java/org/apache/wicket/protocol/http/ResponseIOExceptionTest.java
+++ 
b/wicket-core/src/test/java/org/apache/wicket/protocol/http/ResponseIOExceptionTest.java
@@ -125,6 +125,13 @@ public class ResponseIOExceptionTest extends Assert
                }
 
                @Override
+               public void write(byte[] array, int offset, int length)
+               {
+                       throw new ResponseIOException(new SocketException(
+                               "Connection reset by peer: socket write 
error"));
+               }
+
+               @Override
                public void write(CharSequence sequence)
                {
                        throw new ResponseIOException(new SocketException(

Reply via email to