directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r618032 - /directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
Date Sun, 03 Feb 2008 17:23:41 GMT
Author: seelmann
Date: Sun Feb  3 09:23:38 2008
New Revision: 618032

URL: http://svn.apache.org/viewvc?rev=618032&view=rev
Log:
Added test for RDN with empty value (DIRSTUDIO-161)

Modified:
    directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java

Modified: directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java?rev=618032&r1=618031&r2=618032&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
Sun Feb  3 09:23:38 2008
@@ -1087,4 +1087,16 @@
 
         assertEquals( rdn, rdn2 );
     }
+
+
+    /**
+     * test an RDN with empty value
+     */
+    @Test
+    public void testRdnWithEmptyValue() throws InvalidNameException
+    {
+        assertEquals( "a=", new Rdn( "a=\"\"" ).toString() );
+        assertEquals( "a=", new Rdn( "a=" ).toString() );
+    }
+
 }



Mime
View raw message