directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r179364 - /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddResponseTest.java
Date Wed, 01 Jun 2005 06:54:15 GMT
Author: elecharny
Date: Tue May 31 23:54:14 2005
New Revision: 179364

URL: http://svn.apache.org/viewcvs?rev=179364&view=rev
Log:
Some cleaning. Nothing serious.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddResponseTest.java?rev=179364&r1=179363&r2=179364&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddResponseTest.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddResponseTest.java
Tue May 31 23:54:14 2005
@@ -66,7 +66,7 @@
                 'e', 'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm',
 				0x04, 0x00  		//      errorMessage LDAPString,
 									//		referral     [3] Referral OPTIONAL }
-									// serverSaslCreds [7] OCTET STRING OPTIONAL }
+									// }
             } );
 
         stream.flip();
@@ -85,11 +85,11 @@
         }
     	
         LdapMessagePOJO message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
-        AddResponsePOJO br      = ( AddResponsePOJO ) ( message.getProtocolOp() );
+        AddResponsePOJO addResponse      = ( AddResponsePOJO ) ( message.getProtocolOp()
);
 
         Assert.assertEquals( 1, message.getMessageId() );
-        Assert.assertEquals( 0, br.getLdapResult().getResultCode() );
-        Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getLdapResult().getMatchedDN()
);
-        Assert.assertEquals( "", br.getLdapResult().getErrorMessage() );
+        Assert.assertEquals( 0, addResponse.getLdapResult().getResultCode() );
+        Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", addResponse.getLdapResult().getMatchedDN()
);
+        Assert.assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
     }
 }



Mime
View raw message