You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/11/05 09:20:27 UTC

svn commit: r330983 - /directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authn/SimpleAuthenticationTest.java

Author: akarasulu
Date: Sat Nov  5 00:20:24 2005
New Revision: 330983

URL: http://svn.apache.org/viewcvs?rev=330983&view=rev
Log:
fixed bug in test case introduced from changing admin password to string

Modified:
    directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authn/SimpleAuthenticationTest.java

Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authn/SimpleAuthenticationTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authn/SimpleAuthenticationTest.java?rev=330983&r1=330982&r2=330983&view=diff
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authn/SimpleAuthenticationTest.java (original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authn/SimpleAuthenticationTest.java Sat Nov  5 00:20:24 2005
@@ -119,7 +119,7 @@
         DirContext ctx = ( DirContext ) sysRoot.lookup( "uid=admin" );
         Attributes attrs = ctx.getAttributes( "" );
         performAdminAccountChecks( attrs );
-        assertTrue( ArrayUtils.isEquals( attrs.get( "userPassword" ).get(), "secret" ));
+        assertTrue( ArrayUtils.isEquals( attrs.get( "userPassword" ).get(), "secret".getBytes() ));
     }
 
 
@@ -134,7 +134,7 @@
         Attributes attrs = ctx.getAttributes( "" );
 
         performAdminAccountChecks( attrs );
-        assertTrue( ArrayUtils.isEquals( attrs.get( "userPassword" ).get(), "secret" ));
+        assertTrue( ArrayUtils.isEquals( attrs.get( "userPassword" ).get(), "secret".getBytes() ));
     }