directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r700848 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
Date Wed, 01 Oct 2008 17:43:19 GMT
Author: elecharny
Date: Wed Oct  1 10:43:19 2008
New Revision: 700848

URL: http://svn.apache.org/viewvc?rev=700848&view=rev
Log:
Added a small test for the getUpName() method

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

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java?rev=700848&r1=700847&r2=700848&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
Wed Oct  1 10:43:19 2008
@@ -1415,4 +1415,15 @@
         assertEquals( true, rdn.equals( copiedRdn ) );
     }
 
+
+    /**
+     * test the UpName method on a RDN with more than one atav
+     */
+    @Test 
+    public void testGetUpNameMultipleAtav() throws InvalidNameException
+    {
+        Rdn rdn = new Rdn( " A = b + C = d " );
+        
+        assertEquals( " A = b + C = d ", rdn.getUpName() );
+    }
 }



Mime
View raw message