directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r290641 - /directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/AbandonRequestTest.java
Date Wed, 21 Sep 2005 07:19:01 GMT
Author: elecharny
Date: Wed Sep 21 00:18:55 2005
New Revision: 290641

URL: http://svn.apache.org/viewcvs?rev=290641&view=rev
Log:
Fixed the PDU : the Controls does not contains two SEQUENCE OF. 

Modified:
    directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/AbandonRequestTest.java

Modified: directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/AbandonRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/AbandonRequestTest.java?rev=290641&r1=290640&r2=290641&view=diff
==============================================================================
--- directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/AbandonRequestTest.java
(original)
+++ directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/AbandonRequestTest.java
Wed Sep 21 00:18:55 2005
@@ -102,15 +102,15 @@
     {
         Asn1Decoder ldapDecoder = new LdapDecoder();
 
-        ByteBuffer  stream      = ByteBuffer.allocate( 0x4A );
+        ByteBuffer  stream      = ByteBuffer.allocate( 0x48 );
         stream.put(
             new byte[]
             {
-                0x30, 0x48,         // LDAPMessage ::=SEQUENCE {
+                0x30, 0x46,         // LDAPMessage ::=SEQUENCE {
                 0x02, 0x01, 0x03,   //        messageID MessageID
                 0x50, 0x01, 0x02,    //        CHOICE { ..., abandonRequest AbandonRequest,...
-                (byte)0xA0, 0x40,   //    controls       [0] Controls OPTIONAL }
-                0x30, 0x3E,         // Controls ::= SEQUENCE OF Control
+                (byte)0xA0, 0x3E,   //    controls       [0] Controls OPTIONAL }
+                //0x30, 0x3E,         // Controls ::= SEQUENCE OF Control
                 0x30, 0x13,         // Control ::= SEQUENCE {
                                     //    controlType             LDAPOID, 
                 0x04, 0x06, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x01,
@@ -156,7 +156,7 @@
         Assert.assertEquals( 2, abandonRequest.getAbandonedMessageId() );
         
         // Check the length
-        Assert.assertEquals(0x4A, message.computeLength());
+        Assert.assertEquals(0x48, message.computeLength());
         
         // Check the encoding
         try



Mime
View raw message