directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r263888 - /directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java
Date Sun, 28 Aug 2005 16:49:31 GMT
Author: elecharny
Date: Sun Aug 28 09:49:11 2005
New Revision: 263888

URL: http://svn.apache.org/viewcvs?rev=263888&view=rev
Log:
- changed the expected state from PDU_DECODED to VALUE_PENDING for splitted PDU's
- switched the expected and obtained values in the Assert

Modified:
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java?rev=263888&r1=263887&r2=263888&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java
Sun Aug 28 09:49:11 2005
@@ -144,7 +144,7 @@
             Assert.fail( de.getMessage() );
         }
 
-        Assert.assertEquals( ldapMessageContainer.getState(), TLVStateEnum.PDU_DECODED );
+        Assert.assertEquals( TLVStateEnum.VALUE_STATE_PENDING, ldapMessageContainer.getState()
);
         
         // Check the decoded PDU
         LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
@@ -193,7 +193,7 @@
             Assert.fail( de.getMessage() );
         }
 
-        Assert.assertEquals( ldapMessageContainer.getState(), TLVStateEnum.PDU_DECODED );
+        Assert.assertEquals( TLVStateEnum.VALUE_STATE_PENDING, ldapMessageContainer.getState()
);
 
         // Second block of data
         stream = ByteBuffer.allocate( 37 );



Mime
View raw message