directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1344238 - /directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/name/DnParserTest.java
Date Wed, 30 May 2012 13:02:54 GMT
Author: pamarcelot
Date: Wed May 30 13:02:54 2012
New Revision: 1344238

URL: http://svn.apache.org/viewvc?rev=1344238&view=rev
Log:
Added an ignored test case for DIRAPI-88 (RDN parsing fails with values containing a # character
followed by other characters).

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

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/name/DnParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/name/DnParserTest.java?rev=1344238&r1=1344237&r2=1344238&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/name/DnParserTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/name/DnParserTest.java
Wed May 30 13:02:54 2012
@@ -28,6 +28,7 @@ import static org.junit.Assert.fail;
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException;
 import org.apache.directory.shared.util.Strings;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -588,7 +589,7 @@ public class DnParserTest
         try
         {
             new Dn( input ).toString();
-            fail( "Should never rech this point" );
+            fail( "Should never reach this point" );
         }
         catch ( LdapException ne )
         {
@@ -610,4 +611,25 @@ public class DnParserTest
         assertEquals( "dc=example", dn.getRdn( 1 ).getName() );
         assertEquals( "dc=org", dn.getRdn( 2 ).getName() );
     }
+
+
+    /**
+     * Test case for DIRAPI-88 (RDN parsing fails with values containing a # character followed
by other characters)
+     */
+    @Test
+    @Ignore
+    public final void testDIRAPI88()
+    {
+        String dnString = "workforceID=200511230101#38SA";
+
+        try
+        {
+            Dn dn = new Dn( dnString );
+//            System.out.println( dn );
+        }
+        catch ( LdapInvalidDnException e )
+        {
+            fail( e.getMessage() );
+        }
+    }
 }



Mime
View raw message