directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r225391 - /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java
Date Tue, 26 Jul 2005 20:51:18 GMT
Author: elecharny
Date: Tue Jul 26 13:51:15 2005
New Revision: 225391

URL: http://svn.apache.org/viewcvs?rev=225391&view=rev
Log:
Fixed some bad length in the PDU

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java?rev=225391&r1=225390&r2=225391&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java
Tue Jul 26 13:51:15 2005
@@ -143,14 +143,14 @@
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
-        ByteBuffer  stream      = ByteBuffer.allocate( 0x7c );
+        ByteBuffer  stream      = ByteBuffer.allocate( 0x7b );
         
         stream.put(
             new byte[]
             {
                  
                 
-                0x30, 0x7a, 		// LDAPMessage ::=SEQUENCE {
+                0x30, 0x79, 		// LDAPMessage ::=SEQUENCE {
 				0x02, 0x01, 0x01, 	//     messageID MessageID
 				0x64, 0x74, 		//     CHOICE { ..., searchResEntry  SearchResultEntry, ...
                         			// SearchResultEntry ::= [APPLICATION 4] SEQUENCE {
@@ -230,6 +230,6 @@
         }
         
         // Check the length
-        Assert.assertEquals(0x7C, message.computeLength());
+        Assert.assertEquals(0x7b, message.computeLength());
     }
 }



Mime
View raw message