hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1493742 - in /httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio: integration/TestTruncatedChunks.java util/ContentEncoderMock.java
Date Mon, 17 Jun 2013 12:43:55 GMT
Author: sebb
Date: Mon Jun 17 12:43:54 2013
New Revision: 1493742

URL: http://svn.apache.org/r1493742
Log:
Use access methods rather than direct field access

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestTruncatedChunks.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestTruncatedChunks.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestTruncatedChunks.java?rev=1493742&r1=1493741&r2=1493742&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestTruncatedChunks.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestTruncatedChunks.java
Mon Jun 17 12:43:54 2013
@@ -119,7 +119,7 @@ public class TestTruncatedChunks extends
 
         @Override
         public void complete() throws IOException {
-            this.completed = true;
+            super.complete();
         }
 
         public int write(final ByteBuffer src) throws IOException {

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java?rev=1493742&r1=1493741&r2=1493742&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java
Mon Jun 17 12:43:54 2013
@@ -49,7 +49,7 @@ public class ContentEncoderMock extends 
         if (src == null) {
             return 0;
         }
-        Asserts.check(!this.completed, "Decoding process already completed");
+        Asserts.check(isCompleted(), "Decoding process already completed");
         return this.channel.write(src);
     }
 



Mime
View raw message