directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r890786 - /directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Date Tue, 15 Dec 2009 13:12:26 GMT
Author: kayyagari
Date: Tue Dec 15 13:12:25 2009
New Revision: 890786

URL: http://svn.apache.org/viewvc?rev=890786&view=rev
Log:
added a test for DIRSERVER-1442

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

Modified: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?rev=890786&r1=890785&r2=890786&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Tue Dec 15 13:12:25 2009
@@ -3529,4 +3529,24 @@
         assertEquals( "cn=loopback+iphostnumber=\\#127.0.0.1 Z", dn4.getRdn().getNormName()
);
     }
 
+    
+    /**
+     * test case for DIRSERVER-1442
+     * 
+     * This test shows that the parser has no issues with escaped + 
+     */
+    @Test
+    public void testAddAttributeWithEscapedPlusCharacter()
+    {
+        try
+        {
+            LdapDN dn = new LdapDN( "cn=John\\+Doe" );
+            assertTrue( true );
+        }
+        catch( Exception e )
+        {
+            fail();
+        }
+    }
+
 }



Mime
View raw message