directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r267335 - /directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/name/DnParserTest.java
Date Fri, 02 Sep 2005 22:13:47 GMT
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



Mime
View raw message