directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r502491 - /directory/apacheds/trunk/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
Date Fri, 02 Feb 2007 05:05:03 GMT
Author: akarasulu
Date: Thu Feb  1 21:05:02 2007
New Revision: 502491

URL: http://svn.apache.org/viewvc?view=rev&rev=502491
Log:
adding extra rootDSE context to the admin unit test case

Modified:
    directory/apacheds/trunk/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java

Modified: directory/apacheds/trunk/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java?view=diff&rev=502491&r1=502490&r2=502491
==============================================================================
--- directory/apacheds/trunk/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
(original)
+++ directory/apacheds/trunk/core-unit/src/main/java/org/apache/directory/server/core/unit/AbstractTestCase.java
Thu Feb  1 21:05:02 2007
@@ -84,6 +84,9 @@
 
     /** the context root for the schema partition */
     protected LdapContext schemaRoot;
+    
+    /** the rootDSE context for the server */
+    protected LdapContext rootDSE;
 
     /** flag whether to delete database files for each test or not */
     protected boolean doDelete = true;
@@ -283,8 +286,12 @@
 
         // OK, now let's get an appropriate context.
         sysRoot = new InitialLdapContext( envFinal, null );
+
         envFinal.put( Context.PROVIDER_URL, "ou=schema" );
         schemaRoot = new InitialLdapContext( envFinal, null );
+        
+        envFinal.put( Context.PROVIDER_URL, "" );
+        rootDSE = new InitialLdapContext( envFinal, null );
     }
 
 



Mime
View raw message