You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/04/13 21:18:54 UTC
svn commit: r528610 -
/directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryITest.java
Author: elecharny
Date: Fri Apr 13 12:18:53 2007
New Revision: 528610
URL: http://svn.apache.org/viewvc?view=rev&rev=528610
Log:
Fixed the value stored in the seeAlso attribute, it should be a DN
Modified:
directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryITest.java
Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryITest.java?view=diff&rev=528610&r1=528609&r2=528610
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryITest.java (original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryITest.java Fri Apr 13 12:18:53 2007
@@ -64,14 +64,14 @@
public void testStateFactory() throws NamingException
{
super.sysRoot.addToEnvironment( Context.STATE_FACTORIES, PersonStateFactory.class.getName() );
- Person p = new Person( "Rodriguez", "Mr. Kerberos", "noices", "555-1212", "erodriguez", "committer" );
+ Person p = new Person( "Rodriguez", "Mr. Kerberos", "noices", "555-1212", "sn=erodriguez", "committer" );
super.sysRoot.bind( "uid=erodriguez, ou=users", p );
Attributes attrs = super.sysRoot.getAttributes( "uid=erodriguez, ou=users" );
assertEquals( "Rodriguez", attrs.get( "sn" ).get() );
assertEquals( "Mr. Kerberos", attrs.get( "cn" ).get() );
assertTrue( ArrayUtils.isEquals( attrs.get( "userPassword" ).get(), "noices".getBytes() ) );
assertEquals( "555-1212", attrs.get( "telephonenumber" ).get() );
- assertEquals( "erodriguez", attrs.get( "seealso" ).get() );
+ assertEquals( "sn=erodriguez", attrs.get( "seealso" ).get() );
assertEquals( "committer", attrs.get( "description" ).get() );
}