directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r177930 - in /directory/network: branches/0.7/src/test/org/apache/mina/protocol/codec/CumulativeProtocolDecoderTest.java trunk/src/test/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
Date Mon, 23 May 2005 06:08:24 GMT
Author: trustin
Date: Sun May 22 23:08:23 2005
New Revision: 177930

URL: http://svn.apache.org/viewcvs?rev=177930&view=rev
Log:
Added some test code for DIRMINA-45


Modified:
    directory/network/branches/0.7/src/test/org/apache/mina/protocol/codec/CumulativeProtocolDecoderTest.java
    directory/network/trunk/src/test/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java

Modified: directory/network/branches/0.7/src/test/org/apache/mina/protocol/codec/CumulativeProtocolDecoderTest.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/0.7/src/test/org/apache/mina/protocol/codec/CumulativeProtocolDecoderTest.java?rev=177930&r1=177929&r2=177930&view=diff
==============================================================================
--- directory/network/branches/0.7/src/test/org/apache/mina/protocol/codec/CumulativeProtocolDecoderTest.java
(original)
+++ directory/network/branches/0.7/src/test/org/apache/mina/protocol/codec/CumulativeProtocolDecoderTest.java
Sun May 22 23:08:23 2005
@@ -130,6 +130,7 @@
         protected boolean doDecode( ProtocolSession session, ByteBuffer in,
                                     ProtocolDecoderOutput out ) throws ProtocolViolationException
         {
+            Assert.assertTrue( in.hasRemaining() );
             if( in.remaining() < 4 )
                 return false;
             

Modified: directory/network/trunk/src/test/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/test/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java?rev=177930&r1=177929&r2=177930&view=diff
==============================================================================
--- directory/network/trunk/src/test/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
(original)
+++ directory/network/trunk/src/test/org/apache/mina/filter/codec/CumulativeProtocolDecoderTest.java
Sun May 22 23:08:23 2005
@@ -131,6 +131,7 @@
         protected boolean doDecode( IoSession session, ByteBuffer in,
                                     ProtocolDecoderOutput out ) throws ProtocolViolationException
         {
+            Assert.assertTrue( in.hasRemaining() );
             if( in.remaining() < 4 )
                 return false;
             



Mime
View raw message