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 2009/01/12 16:22:38 UTC
svn commit: r733782 -
/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Author: elecharny
Date: Mon Jan 12 07:22:31 2009
New Revision: 733782
URL: http://svn.apache.org/viewvc?rev=733782&view=rev
Log:
Added a test with a RDN containing three AttributeTypeAndValue
Modified:
directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?rev=733782&r1=733781&r2=733782&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java Mon Jan 12 07:22:31 2009
@@ -3177,4 +3177,14 @@
assertEquals( dn, LdapDNSerializer.deserialize( in ) );
assertEquals( dn, deserializeDN( serializeDN( dn ) ) );
}
+
+ @Test
+ public void testCompositeRDN() throws InvalidNameException
+ {
+ assertTrue( LdapDN.isValid( "a=b+c=d+e=f,g=h" ) );
+
+ LdapDN dn = new LdapDN( "a=b+c=d+e=f,g=h" );
+
+ assertEquals( "a=b+c=d+e=f,g=h", dn.toString() );
+ }
}