directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r330986 - /directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authz/AuthorizationServiceAsAdminTest.java
Date Sat, 05 Nov 2005 08:37:08 GMT
Author: akarasulu
Date: Sat Nov  5 00:37:06 2005
New Revision: 330986

URL: http://svn.apache.org/viewcvs?rev=330986&view=rev
Log:
array comparision does not work: need to use complete byte by byte compare

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

Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authz/AuthorizationServiceAsAdminTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authz/AuthorizationServiceAsAdminTest.java?rev=330986&r1=330985&r2=330986&view=diff
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authz/AuthorizationServiceAsAdminTest.java
(original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/ldap/server/authz/AuthorizationServiceAsAdminTest.java
Sat Nov  5 00:37:06 2005
@@ -25,6 +25,7 @@
 
 import org.apache.ldap.common.exception.LdapNoPermissionException;
 import org.apache.ldap.common.message.LockableAttributesImpl;
+import org.apache.ldap.common.util.ArrayUtils;
 import org.apache.ldap.server.unit.AbstractAdminTestCase;
 
 
@@ -86,7 +87,7 @@
         attributes.put( "userPassword", "replaced" );
         sysRoot.modifyAttributes( "uid=admin", DirContext.REPLACE_ATTRIBUTE, attributes );
         Attributes newAttrs = sysRoot.getAttributes( "uid=admin" );
-        assertEquals( "replaced", newAttrs.get( "userPassword" ).get() );
+        assertTrue( ArrayUtils.isEquals( "replaced".getBytes(), newAttrs.get( "userPassword"
).get() ) );
     }
 
 



Mime
View raw message