directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r603373 - /directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Date Tue, 11 Dec 2007 21:52:13 GMT
Author: elecharny
Date: Tue Dec 11 13:52:06 2007
New Revision: 603373

URL: http://svn.apache.org/viewvc?rev=603373&view=rev
Log:
Added a new tests to check special DN like "cn= \"test, test\" "

Modified:
    directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java

Modified: directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?rev=603373&r1=603372&r2=603373&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Tue Dec 11 13:52:06 2007
@@ -2636,6 +2636,20 @@
        assertEquals( "cn=\\ Kylie Minogue\\ ,dc=example,dc=com", dn.toString() );
    }
 
+   
+   /**
+    * Test for DIRSTUDIO-250
+    * @throws NamingException
+    */
+   public void testDoubleQuoteWithSpecialCharsInNameDIRSERVER_250() throws NamingException
+   {
+       LdapDN dn = new LdapDN( "a=\"b,c\"" );
+
+       assertEquals( "a=\"b,c\"", dn.getUpName() );
+       assertEquals( "a=b\\,c", dn.toString() );
+   }
+
+
    /**
     * Test for DIRSERVER-184
     * @throws NamingException



Mime
View raw message