directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r437286 - /directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
Date Sun, 27 Aug 2006 02:58:47 GMT
Author: akarasulu
Date: Sat Aug 26 19:58:46 2006
New Revision: 437286

URL: http://svn.apache.org/viewvc?rev=437286&view=rev
Log:
Fix for DIRSERVER-663

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

Modified: directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java?rev=437286&r1=437285&r2=437286&view=diff
==============================================================================
--- directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
(original)
+++ directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextITest.java
Sat Aug 26 19:58:46 2006
@@ -20,6 +20,8 @@
 package org.apache.directory.server.core.jndi;
 
 
+import javax.naming.CompositeName;
+import javax.naming.Name;
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
 import javax.naming.directory.Attribute;
@@ -240,5 +242,20 @@
         }
 
         assertNull( ctx );
+    }
+    
+    
+    public void testCreateContextWithCompositeName() throws Exception
+    {
+        Attributes attrs = new BasicAttributes( true );
+        Attribute objclass = new BasicAttribute( "objectClass" );
+        objclass.add( "top" );
+        objclass.add( "extensibleObject" );
+        attrs.put( objclass );
+
+        Name relativeName = new CompositeName( "ou=services" );
+
+        //sysRoot.createSubcontext(relativeName.toString(), attrs);//Passes!
+        sysRoot.createSubcontext( relativeName, attrs );//Fails!
     }
 }



Mime
View raw message