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 2005/09/03 00:13:47 UTC
svn commit: r267335 -
/directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java
Author: elecharny
Date: Fri Sep 2 15:13:42 2005
New Revision: 267335
URL: http://svn.apache.org/viewcvs?rev=267335&view=rev
Log:
Updated the branch to reflect the modifications in the trunk
Modified:
directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java
Modified: directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java?rev=267335&r1=267334&r2=267335&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java (original)
+++ directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java Fri Sep 2 15:13:42 2005
@@ -245,4 +245,21 @@
assertNotNull(e);
}
}
+
+
+ /**
+ * Tests to see if inner whitespace is preserved after an escaped ',' in
+ * a value of a name component. This test was added to try to reproduce
+ * the bug encountered in DIREVE-179 <a href="http://issues.apache.org/jira/browse/DIREVE-179">
+ * here</a>.
+ *
+ * @throws NamingException if anything goes wrong on parse()
+ */
+ public final void testPreserveSpaceAfterEscape() throws NamingException
+ {
+ DnParser parser = new DnParser();
+ String input = "ou=some test\\, something else";
+ String result = parser.parse( input ).toString();
+ assertEquals( input, result );
+ }
} // end class DnParserTest