directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r209230 - /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindRequestTest.java
Date Tue, 05 Jul 2005 06:36:42 GMT
Author: elecharny
Date: Mon Jul  4 23:36:42 2005
New Revision: 209230

URL: http://svn.apache.org/viewcvs?rev=209230&view=rev
Log:
Polishing the code and comments

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindRequestTest.java?rev=209230&r1=209229&r2=209230&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindRequestTest.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindRequestTest.java
Mon Jul  4 23:36:42 2005
@@ -70,9 +70,10 @@
 
         stream.flip();
 
-        // Allocate a BindRequest Container
+        // Allocate a LdapMessage Container
         IAsn1Container ldapMessageContainer = new LdapMessageContainer();
 
+        // Decode the BindRequest PDU
         try
         {
             ldapDecoder.decode( stream, ldapMessageContainer );
@@ -83,6 +84,7 @@
             Assert.fail( de.getMessage() );
         }
     	
+        // Check the decoded BindRequest 
         LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
         BindRequest br      = ( BindRequest ) ( message.getProtocolOp() );
 
@@ -117,9 +119,10 @@
 
         stream.flip();
 
-        // Allocate a BindRequest Container
+        // Allocate a LdapMessage Container
         IAsn1Container ldapMessageContainer =  new LdapMessageContainer();
 
+        // Decode the BindRequest PDU
         try
         {
             ldapDecoder.decode( stream, ldapMessageContainer );
@@ -163,9 +166,10 @@
 
         stream.flip();
 
-        // Allocate a BindRequest Container
+        // Allocate a LdapMessage Container
         IAsn1Container ldapMessageContainer = new LdapMessageContainer();
 
+        // Decode the BindRequest PDU
         try
         {
             ldapDecoder.decode( stream, ldapMessageContainer );
@@ -176,6 +180,7 @@
             Assert.fail( de.getMessage() );
         }
     	
+        // Check the decoded BindRequest 
         LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
         BindRequest br      = ( BindRequest ) ( message.getProtocolOp() );
 
@@ -221,9 +226,10 @@
 
         stream.flip();
 
-        // Allocate a BindRequest Container
+        // Allocate a LdapMessage Container
         IAsn1Container ldapMessageContainer = new LdapMessageContainer();
 
+        // Decode the BindRequest PDU
         try
         {
             ldapDecoder.decode( stream, ldapMessageContainer );
@@ -234,6 +240,7 @@
             Assert.fail( de.getMessage() );
         }
     	
+        // Check the decoded BindRequest 
         LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
         BindRequest br      = ( BindRequest ) ( message.getProtocolOp() );
 



Mime
View raw message