directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r733782 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Date Mon, 12 Jan 2009 15:22:38 GMT
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() );
+    }
 }



Mime
View raw message