directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r331719 - /directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/DnParserTest.java
Date Tue, 08 Nov 2005 07:14:26 GMT
Author: ersiner
Date: Mon Nov  7 23:14:22 2005
New Revision: 331719

URL: http://svn.apache.org/viewcvs?rev=331719&view=rev
Log:
added a test case for escaped chars as stated in RFC 2253

Modified:
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/DnParserTest.java

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/DnParserTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/DnParserTest.java?rev=331719&r1=331718&r2=331719&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/DnParserTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/DnParserTest.java
Mon Nov  7 23:14:22 2005
@@ -263,6 +263,14 @@
         assertEquals( input, result );
     }
     
+    public void testWindowsFilePath() throws Exception
+    {
+        // '\' should be escaped as stated in RFC 2253
+        String path = "windowsFilePath=C:\\\\cygwin";
+        DnParser parser = new DnParser();
+        String result = parser.parse( path ).toString();
+        assertEquals( path, result );
+    }    
     
     public void testNameFrenchChars() throws Exception
     {
@@ -302,4 +310,5 @@
         assertEquals( cn, result.toString() );
 
     }
+
 }  // end class DnParserTest



Mime
View raw message