directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r760733 - /directory/apacheds/branches/apacheds-replication/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
Date Tue, 31 Mar 2009 23:32:00 GMT
Author: elecharny
Date: Tue Mar 31 23:32:00 2009
New Revision: 760733

URL: http://svn.apache.org/viewvc?rev=760733&view=rev
Log:
Modified the classes to reflect the renaming of codec and standard messages

Modified:
    directory/apacheds/branches/apacheds-replication/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java

Modified: directory/apacheds/branches/apacheds-replication/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java?rev=760733&r1=760732&r2=760733&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
(original)
+++ directory/apacheds/branches/apacheds-replication/server-integ/src/test/java/org/apache/directory/server/operations/bind/SaslBindIT.java
Tue Mar 31 23:32:00 2009
@@ -63,7 +63,7 @@
 import org.apache.directory.server.xdbm.Index;
 import org.apache.directory.shared.ldap.constants.SupportedSaslMechanisms;
 import org.apache.directory.shared.ldap.message.BindRequestImpl;
-import org.apache.directory.shared.ldap.message.BindResponse;
+import org.apache.directory.shared.ldap.message.InternalBindResponse;
 import org.apache.directory.shared.ldap.message.MessageDecoder;
 import org.apache.directory.shared.ldap.message.MessageEncoder;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
@@ -515,13 +515,13 @@
      public void testNtlmBind() throws Exception
      {
          NtlmSaslBindClient client = new NtlmSaslBindClient( SupportedSaslMechanisms.NTLM
);
-         BindResponse type2response = client.bindType1( "type1_test".getBytes() );
+         InternalBindResponse type2response = client.bindType1( "type1_test".getBytes() );
          assertEquals( 1, type2response.getMessageId() );
          assertEquals( ResultCodeEnum.SASL_BIND_IN_PROGRESS, type2response.getLdapResult().getResultCode()
);
          assertTrue( ArrayUtils.isEquals( "type1_test".getBytes(), provider.getType1Response()
) );
          assertTrue( ArrayUtils.isEquals( "challenge".getBytes(), type2response.getServerSaslCreds()
) );
          
-         BindResponse finalResponse = client.bindType3( "type3_test".getBytes() );
+         InternalBindResponse finalResponse = client.bindType3( "type3_test".getBytes() );
          assertEquals( 2, finalResponse.getMessageId() );
          assertEquals( ResultCodeEnum.SUCCESS, finalResponse.getLdapResult().getResultCode()
);
          assertTrue( ArrayUtils.isEquals( "type3_test".getBytes(), provider.getType3Response()
) );
@@ -535,13 +535,13 @@
      public void testGssSpnegoBind() throws Exception
      {
          NtlmSaslBindClient client = new NtlmSaslBindClient( SupportedSaslMechanisms.GSS_SPNEGO
);
-         BindResponse type2response = client.bindType1( "type1_test".getBytes() );
+         InternalBindResponse type2response = client.bindType1( "type1_test".getBytes() );
          assertEquals( 1, type2response.getMessageId() );
          assertEquals( ResultCodeEnum.SASL_BIND_IN_PROGRESS, type2response.getLdapResult().getResultCode()
);
          assertTrue( ArrayUtils.isEquals( "type1_test".getBytes(), provider.getType1Response()
) );
          assertTrue( ArrayUtils.isEquals( "challenge".getBytes(), type2response.getServerSaslCreds()
) );
          
-         BindResponse finalResponse = client.bindType3( "type3_test".getBytes() );
+         InternalBindResponse finalResponse = client.bindType3( "type3_test".getBytes() );
          assertEquals( 2, finalResponse.getMessageId() );
          assertEquals( ResultCodeEnum.SUCCESS, finalResponse.getLdapResult().getResultCode()
);
          assertTrue( ArrayUtils.isEquals( "type3_test".getBytes(), provider.getType3Response()
) );
@@ -610,7 +610,7 @@
          }
 
          
-         BindResponse bindType1( byte[] type1response ) throws Exception
+         InternalBindResponse bindType1( byte[] type1response ) throws Exception
          {
              if ( ! isConnected() )
              {
@@ -644,11 +644,11 @@
              }
              
              // Retrieve the response back from server to my last request.
-             return ( BindResponse ) decoder.decode( null, _input_ );
+             return ( InternalBindResponse ) decoder.decode( null, _input_ );
          }
          
          
-         BindResponse bindType3( byte[] type3response ) throws Exception
+         InternalBindResponse bindType3( byte[] type3response ) throws Exception
          {
              if ( ! isConnected() )
              {
@@ -683,7 +683,7 @@
              }
              
              // Retrieve the response back from server to my last request.
-             return ( BindResponse ) decoder.decode( null, _input_ );
+             return ( InternalBindResponse ) decoder.decode( null, _input_ );
          }
      }
 }



Mime
View raw message