directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191725 - in /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec: BindRequestTest.java BindResponseTest.java
Date Tue, 21 Jun 2005 20:48:45 GMT
Author: elecharny
Date: Tue Jun 21 13:48:45 2005
New Revision: 191725

URL: http://svn.apache.org/viewcvs?rev=191725&view=rev
Log:
Changed the assertion to compare OctetStrings

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindRequestTest.java
    directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindResponseTest.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=191725&r1=191724&r2=191725&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
Tue Jun 21 13:48:45 2005
@@ -242,6 +242,6 @@
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getName() );
         Assert.assertEquals( true, ( br.getAuthentication() instanceof SaslCredentials )
);
         Assert.assertEquals( "KERBEROS_V4", ( ( SaslCredentials ) br.getAuthentication()
).getMechanism() );
-        Assert.assertEquals( "abcdef", new String( ( ( SaslCredentials ) br.getAuthentication()
).getCredentials() ) );
+        Assert.assertEquals( "[61][62][63][64][65][66]", ( ( SaslCredentials ) br.getAuthentication()
).getCredentials().toString() );
     }
 }

Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindResponseTest.java?rev=191725&r1=191724&r2=191725&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindResponseTest.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindResponseTest.java
Tue Jun 21 13:48:45 2005
@@ -145,6 +145,6 @@
         Assert.assertEquals( 0, br.getLdapResult().getResultCode() );
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getLdapResult().getMatchedDN()
);
         Assert.assertEquals( "", br.getLdapResult().getErrorMessage() );
-        Assert.assertEquals( "AB", new String(br.getServerSaslCreds()));
+        Assert.assertEquals( "[41][42]", br.getServerSaslCreds().toString());
     }
 }



Mime
View raw message