directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191345 - /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/BindRequestTest.java
Date Sun, 19 Jun 2005 14:43:01 GMT
Author: elecharny
Date: Sun Jun 19 07:43:00 2005
New Revision: 191345

URL: http://svn.apache.org/viewcvs?rev=191345&view=rev
Log:
SaslAuthorisation has been changed to SaslCredential

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=191345&r1=191344&r2=191345&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
Sun Jun 19 07:43:00 2005
@@ -23,7 +23,7 @@
 import org.apache.asn1.ber.containers.IAsn1Container;
 import org.apache.asn1.ldap.pojo.BindRequest;
 import org.apache.asn1.ldap.pojo.LdapMessage;
-import org.apache.asn1.ldap.pojo.SaslAuthentication;
+import org.apache.asn1.ldap.pojo.SaslCredentials;
 import org.apache.asn1.ldap.pojo.SimpleAuthentication;
 import org.apache.log4j.Logger;
 import org.apache.log4j.PropertyConfigurator;
@@ -182,8 +182,8 @@
         Assert.assertEquals( 1, message.getMessageId() );
         Assert.assertEquals( 3, br.getVersion() );
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getName() );
-        Assert.assertEquals( true, ( br.getAuthentication() instanceof SaslAuthentication
) );
-        Assert.assertEquals( "KERBEROS_V4", ( ( SaslAuthentication ) br.getAuthentication()
).getMechanism() );
+        Assert.assertEquals( true, ( br.getAuthentication() instanceof SaslCredentials )
);
+        Assert.assertEquals( "KERBEROS_V4", ( ( SaslCredentials ) br.getAuthentication()
).getMechanism() );
     }
 
     /**
@@ -240,8 +240,8 @@
         Assert.assertEquals( 1, message.getMessageId() );
         Assert.assertEquals( 3, br.getVersion() );
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getName() );
-        Assert.assertEquals( true, ( br.getAuthentication() instanceof SaslAuthentication
) );
-        Assert.assertEquals( "KERBEROS_V4", ( ( SaslAuthentication ) br.getAuthentication()
).getMechanism() );
-        Assert.assertEquals( "abcdef", new String( ( ( SaslAuthentication ) br.getAuthentication()
).getCredentials() ) );
+        Assert.assertEquals( true, ( br.getAuthentication() instanceof SaslCredentials )
);
+        Assert.assertEquals( "KERBEROS_V4", ( ( SaslCredentials ) br.getAuthentication()
).getMechanism() );
+        Assert.assertEquals( "abcdef", new String( ( ( SaslCredentials ) br.getAuthentication()
).getCredentials() ) );
     }
 }



Mime
View raw message