directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r209347 - in /directory/sandbox/trunk/asn1-new-codec/src: java/org/apache/asn1/ldap/pojo/DelResponse.java test/org/apache/asn1/ldap/codec/DelResponseTest.java
Date Tue, 05 Jul 2005 23:13:35 GMT
Author: elecharny
Date: Tue Jul  5 16:13:32 2005
New Revision: 209347

URL: http://svn.apache.org/viewcvs?rev=209347&view=rev
Log:
- Added a toString() method
- polished the code

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelResponse.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelResponse.java?rev=209347&r1=209346&r2=209347&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelResponse.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelResponse.java
Tue Jul  5 16:13:32 2005
@@ -33,4 +33,20 @@
     {
         super( );
     }
+
+    /**
+     * Get a String representation of an DelResponse
+     *
+     * @return An DelResponse String 
+     */
+    public String toString()
+    {
+
+        StringBuffer sb = new StringBuffer();
+
+        sb.append( "    Del Response\n" );
+        sb.append( super.toString() );
+
+        return sb.toString();
+    }
 }

Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/DelResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/DelResponseTest.java?rev=209347&r1=209346&r2=209347&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/DelResponseTest.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/DelResponseTest.java
Tue Jul  5 16:13:32 2005
@@ -73,9 +73,10 @@
 
         stream.flip();
 
-        // Allocate a BindRequest Container
+        // Allocate a LdapMessage Container
         IAsn1Container ldapMessageContainer = new LdapMessageContainer();
 
+        // Decode the DelResponse PDU
         try
         {
             ldapDecoder.decode( stream, ldapMessageContainer );
@@ -86,6 +87,7 @@
             Assert.fail( de.getMessage() );
         }
     	
+        // Check the decoded DelResponse PDU
         LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
         DelResponse delResponse      = ( DelResponse ) ( message.getProtocolOp() );
 



Mime
View raw message