Author: violetagg
Date: Sun Sep 25 14:21:02 2016
New Revision: 1762204

URL: http://svn.apache.org/viewvc?rev=1762204&view=rev
Log:
Implement the method in the test as it is used now.

Modified:
    tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java

Modified: 
tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java?rev=1762204&r1=1762203&r2=1762204&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java 
(original)
+++ tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java 
Sun Sep 25 14:21:02 2016
@@ -112,7 +112,10 @@ public class TesterOutputBuffer extends
 
         @Override
         public int doWrite(ByteBuffer chunk) throws IOException {
-            throw new UnsupportedOperationException();
+            int length = chunk.remaining();
+            outputStream.write(chunk.array(), chunk.arrayOffset() + 
chunk.position(), length);
+            byteCount += length;
+            return length;
         }
 
         @Override



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to