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/12/11 22:52:13 UTC
svn commit: r603373 -
/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
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