directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r511059 - /directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java
Date Fri, 23 Feb 2007 19:20:00 GMT
Author: akarasulu
Date: Fri Feb 23 11:20:00 2007
New Revision: 511059

URL: http://svn.apache.org/viewvc?view=rev&rev=511059
Log:
committing a commented out test case for confirming the presence of the issue in DIRSERVER-832

Modified:
    directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java

Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java?view=diff&rev=511059&r1=511058&r2=511059
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java
(original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/jndi/AddITest.java
Fri Feb 23 11:20:00 2007
@@ -25,6 +25,7 @@
 import org.apache.directory.shared.ldap.message.AttributeImpl;
 import org.apache.directory.shared.ldap.message.AttributesImpl;
 
+import javax.naming.NamingEnumeration;
 import javax.naming.directory.Attributes;
 import javax.naming.directory.Attribute;
 
@@ -42,6 +43,54 @@
         super.setUp();
     }
 
+    
+//    /**
+//     * Test that attribute name case is preserved after adding an entry
+//     * in the case the user added them.  This is to test DIRSERVER-832.
+//     */
+//    public void testAddCasePreservedOnAttributeNames() throws Exception
+//    {
+//        Attributes attrs = new AttributesImpl( true );
+//        Attribute oc = new AttributeImpl( "ObjectClass", "top" );
+//        oc.add( "PERSON" );
+//        oc.add( "organizationalPerson" );
+//        oc.add( "inetORGperson" );
+//        Attribute cn = new AttributeImpl( "Cn", "Kevin Spacey" );
+//        Attribute dc = new AttributeImpl( "sN", "Spacey" );
+//        attrs.put( oc );
+//        attrs.put( cn );
+//        attrs.put( dc);
+//        sysRoot.createSubcontext( "uID=kevin", attrs );
+//        Attributes returned = sysRoot.getAttributes( "UID=kevin" );
+//        
+//        NamingEnumeration attrList = returned.getAll();
+//        while( attrList.hasMore() )
+//        {
+//            Attribute attr = ( Attribute ) attrList.next();
+//            
+//            if ( attr.getID().equalsIgnoreCase( "uid" ) )
+//            {
+//                assertEquals( "uID", attr.getID() );
+//            }
+//            
+//            if ( attr.getID().equalsIgnoreCase( "objectClass" ) )
+//            {
+//                assertEquals( "ObjectClass", attr.getID() );
+//            }
+//            
+//            if ( attr.getID().equalsIgnoreCase( "sn" ) )
+//            {
+//                assertEquals( "sN", attr.getID() );
+//            }
+//            
+//            if ( attr.getID().equalsIgnoreCase( "cn" ) )
+//            {
+//                assertEquals( "Cn", attr.getID() );
+//            }
+//        }
+//    }
+    
+    
     /**
      * Test that we can't add an entry with an attribute type not within
      * any of the MUST or MAY of any of its objectClasses



Mime
View raw message