directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r547275 - in /directory/sandbox/oersoy/apacheds.testing.archetype: ./ src/ src/main/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/META-INF/maven/ src/main/resources/archetype-resources/ src/main/resources/archetype-re...
Date Thu, 14 Jun 2007 15:19:10 GMT
Author: oersoy
Date: Thu Jun 14 08:19:06 2007
New Revision: 547275

URL: http://svn.apache.org/viewvc?view=rev&rev=547275
Log:
Initial Import

Added:
    directory/sandbox/oersoy/apacheds.testing.archetype/
    directory/sandbox/oersoy/apacheds.testing.archetype/.classpath
    directory/sandbox/oersoy/apacheds.testing.archetype/.project
    directory/sandbox/oersoy/apacheds.testing.archetype/pom.xml
    directory/sandbox/oersoy/apacheds.testing.archetype/src/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/META-INF/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/META-INF/maven/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/META-INF/maven/archetype.xml
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/pom.xml
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/connection/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/connection/constants/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/resources/
    directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties
    directory/sandbox/oersoy/apacheds.testing.archetype/target/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/apacheds.testing.archetype-1.0.0.jar
  (with props)
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/META-INF/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/META-INF/maven/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/META-INF/maven/archetype.xml
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/pom.xml
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/connection/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/connection/constants/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/resources/
    directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/resources/log4j.properties

Added: directory/sandbox/oersoy/apacheds.testing.archetype/.classpath
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/.classpath?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/.classpath (added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/.classpath Thu Jun 14 08:19:06 2007
@@ -0,0 +1,5 @@
+<classpath>
+  <classpathentry kind="src" path="src/main/resources"/>
+  <classpathentry kind="output" path="target/classes"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+</classpath>
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/.project
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/.project?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/.project (added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/.project Thu Jun 14 08:19:06 2007
@@ -0,0 +1,14 @@
+<projectDescription>
+  <name>apacheds.testing.archetype</name>
+  <comment/>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+      <arguments/>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/pom.xml?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/pom.xml (added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/pom.xml Thu Jun 14 08:19:06 2007
@@ -0,0 +1,9 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.directory</groupId>
+  <artifactId>apacheds.testing.archetype</artifactId>
+  <version>1.0.0</version>
+  <name>Archetype - apacheds.testing.archetype</name>
+  <url>http://maven.apache.org</url>
+</project>

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/META-INF/maven/archetype.xml?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/META-INF/maven/archetype.xml
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/META-INF/maven/archetype.xml
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,13 @@
+<archetype>
+  <id>apacheds.testing.archetype</id>
+  <testSources>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java</source>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java</source>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java</source>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java</source>
+      <source>src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java</source>
+  </testSources>
+  <testResources>
+  	<resource>src/test/resources/log4j.properties</resource>
+  </testResources>
+</archetype>

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/pom.xml?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/pom.xml
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/pom.xml
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,29 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.directory</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <version>1.0</version>
+  <dependencies>
+    
+    <dependency>
+        <groupId>org.apache.directory.server</groupId>
+        <artifactId>apacheds-core</artifactId>
+        <version>1.5.0</version>
+      </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>nlog4j</artifactId>
+      <version>1.2.25</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,102 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.NamingException;
+import javax.naming.ldap.InitialLdapContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.directory.connection.constants.ApacheDSConnectionConstants;
+import junit.framework.TestCase;
+
+/*
+ * Just a class template class
+ */
+public abstract class JNDIConnectionTemplate
+extends TestCase
+implements ApacheDSConnectionConstants
+{
+    protected String providerHost                    =
+        "ldap://localhost:10389/";
+
+    protected String providerPath                    =
+    	SYSTEM_PROVIDER_PATH;
+
+    private String  providerURL                          =
+        providerHost + providerPath;
+
+    protected String initialContextFactory     = 
+        SUN_CONTEXT_FACTORY;
+    
+    protected String  securityAuthentication = 
+        SIMPLE_SECURITY_AUTHENTICATION_VALUE;
+    
+    protected String  securityPrincipal            = 
+        DEFAULT_SECURITY_PRINCIPAL_VALUE;
+    
+    protected String credentials                      =
+        DEFAULT_SECURITY_CREDENTIALS_VALUE;
+
+    public Hashtable<String,Object> createEnvironment(
+    		Hashtable<String, Object> env)
+    {
+      providerURL                                                  =
+            providerHost + providerPath;
+
+        env.put( 
+            Context.PROVIDER_URL,
+            providerURL);
+
+        env.put( 
+            Context.INITIAL_CONTEXT_FACTORY, 
+            initialContextFactory );
+
+        env.put( 
+            Context.SECURITY_AUTHENTICATION, 
+            securityAuthentication);
+        
+        env.put( 
+            Context.SECURITY_PRINCIPAL, 
+            securityPrincipal );
+        
+        env.put( 
+            Context.SECURITY_CREDENTIALS, 
+            credentials );
+        
+        return env;
+    }
+
+    public LdapContext connect() throws NamingException
+    {
+    	Hashtable<String, Object> env = 
+    		new Hashtable<String, Object>();
+    	
+        return new InitialLdapContext(
+        		createEnvironment(env), null);
+    }
+    
+    public void setUp() throws Exception
+    {
+    	super.setUp();
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,45 @@
+package org.apache.directory.apacheds.testing.setup;
+
+import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
+
+/*
+ * These tests require a running server.
+ */
+public class JNDIConnectionTemplateTest extends JNDIConnectionTemplate  
+{
+	private static LdapContext systemContext  = null;
+	private static LdapContext schemaContext = null;
+	
+    public void tearDown() throws NamingException, Exception
+    {
+        super.tearDown();
+    }
+    
+    public void setUp() throws NamingException, Exception
+    {
+        super.setUp();
+    }
+    
+    public void testSystemContextConnection() 
+    throws NamingException
+    {
+    	systemContext = connect();
+    	assertNotNull( systemContext );
+        assertNotNull( connect() );
+        assertEquals(
+        		systemContext.getNameInNamespace(), "ou=system");
+    }
+    
+    public void testSchemaContextConnection() 
+    throws NamingException
+    {
+    	providerPath    = SCHEMA_PROVIDER_PATH;
+    	schemaContext = connect();
+    	assertNotNull (schemaContext);
+        assertNotNull(connect());
+        assertEquals(
+        		schemaContext.getNameInNamespace(), 
+        		"ou=schema");
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,129 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.naming.ldap.InitialLdapContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.directory.server.core.configuration.MutableStartupConfiguration;
+import org.apache.directory.server.core.configuration.ShutdownConfiguration;
+import org.apache.log4j.PropertyConfigurator;
+
+/**
+ * The Class JNDIEmbeddedConnectionTemplate.
+ */
+public abstract class JNDIEmbeddedConnectionTemplate
+extends JNDIConnectionTemplate
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        Hashtable<String,Object> env = 
+        	new Hashtable<String,Object>();
+        
+        env = createEnvironment(env);
+        
+        env.put( 
+        		Context.PROVIDER_URL, 
+        		SYSTEM_PROVIDER_PATH);
+        env.put( 
+        		Context.INITIAL_CONTEXT_FACTORY, 
+        		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+        env.putAll( 
+        		new ShutdownConfiguration().toJndiEnvironment() );
+        
+        new InitialContext( env );
+        Runtime.getRuntime().gc();
+        super.tearDown();
+    }
+    
+    
+    
+    public void setUp() throws Exception
+    {
+    	PropertyConfigurator.
+    	configure(NLOG4J_CONFIGURATION_FILEPATH);
+        super.setUp();
+    }
+    
+	/**
+	 * Connect to an embedded ApacheDS server.
+	 * 
+	 * @param providerPath the provider path ("ou=schema", ou="system", etc.)
+	 * 
+	 * @return the ldap context
+	 * 
+	 * @throws NamingException the naming exception
+	 */
+	public LdapContext connect( String providerPath ) throws NamingException
+	{
+		 MutableStartupConfiguration mutableStartupConfiguration = 
+	    		new MutableStartupConfiguration();
+		 
+	    Hashtable<String,Object> adminEnv  =
+	    	new Hashtable<String,Object>( );
+	    
+	    adminEnv.putAll( 
+	    			mutableStartupConfiguration.
+	    			toJndiEnvironment());
+	    
+	    adminEnv.put( 
+	    		Context.PROVIDER_URL, 
+	    		SYSTEM_PROVIDER_PATH);
+	    adminEnv.put( 
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+   		new InitialLdapContext( adminEnv, null );
+
+   		
+   		
+	    Hashtable<String,Object> env            = 
+	    	new Hashtable<String,Object>();
+	    
+	    env.put( 
+	    		Context.INITIAL_CONTEXT_FACTORY, 
+	    		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+	    env.put( 	    		
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    env.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    env.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+	    env.put( Context.PROVIDER_URL, providerPath );
+	    
+	    env.put( Context.PROVIDER_URL, providerPath );
+		
+	    return new InitialLdapContext( env, null );
+		
+	}
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,29 @@
+package org.apache.directory.apacheds.testing.setup;
+
+import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
+
+public class JNDIEmbeddedConnectionTemplateTest 
+extends JNDIEmbeddedConnectionTemplate  
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        super.tearDown();
+    }
+    
+    public void setUp() throws Exception
+    {
+        super.setUp();
+
+    }
+    public void testConnect() throws NamingException
+    {
+    	LdapContext ldapContext =null;
+    	
+	    ldapContext =connect("ou=schema");
+	    
+	    assertEquals(
+	    		"ou=schema", 
+	    		ldapContext.getNameInNamespace()); 
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,48 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.connection.constants;
+
+public interface ApacheDSConnectionConstants
+{
+    String APACHE_CONTEXT_FACTORY                          =
+        "org.apache.directory.server.core.jndi.CoreContextFactory";
+
+    String SUN_CONTEXT_FACTORY                                =
+        "com.sun.jndi.ldap.LdapCtxFactory";
+    
+    String SIMPLE_SECURITY_AUTHENTICATION_VALUE = 
+        "simple";
+    
+    String DEFAULT_SECURITY_PRINCIPAL_VALUE          = 
+        "uid=admin,ou=system";
+    
+    String DEFAULT_SECURITY_CREDENTIALS_VALUE    = 
+        "secret";
+    
+    String SCHEMA_PROVIDER_PATH                              =
+    	"ou=schema";
+    
+    String SYSTEM_PROVIDER_PATH                               =
+    	"ou=system";
+    
+    String NLOG4J_CONFIGURATION_FILEPATH              =
+    	"src/test/resources/log4j.properties";
+    	
+}

Added: directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,6 @@
+log4j.rootCategory=ERROR, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/apacheds.testing.archetype-1.0.0.jar
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/apacheds.testing.archetype-1.0.0.jar?view=auto&rev=547275
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/apacheds.testing.archetype/target/apacheds.testing.archetype-1.0.0.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/META-INF/maven/archetype.xml?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/META-INF/maven/archetype.xml
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/META-INF/maven/archetype.xml
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,13 @@
+<archetype>
+  <id>apacheds.testing.archetype</id>
+  <testSources>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java</source>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java</source>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java</source>
+      <source>src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java</source>
+      <source>src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java</source>
+  </testSources>
+  <testResources>
+  	<resource>src/test/resources/log4j.properties</resource>
+  </testResources>
+</archetype>

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/pom.xml?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/pom.xml
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/pom.xml
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,29 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.directory</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <version>1.0</version>
+  <dependencies>
+    
+    <dependency>
+        <groupId>org.apache.directory.server</groupId>
+        <artifactId>apacheds-core</artifactId>
+        <version>1.5.0</version>
+      </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>nlog4j</artifactId>
+      <version>1.2.25</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplate.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,102 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.NamingException;
+import javax.naming.ldap.InitialLdapContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.directory.connection.constants.ApacheDSConnectionConstants;
+import junit.framework.TestCase;
+
+/*
+ * Just a class template class
+ */
+public abstract class JNDIConnectionTemplate
+extends TestCase
+implements ApacheDSConnectionConstants
+{
+    protected String providerHost                    =
+        "ldap://localhost:10389/";
+
+    protected String providerPath                    =
+    	SYSTEM_PROVIDER_PATH;
+
+    private String  providerURL                          =
+        providerHost + providerPath;
+
+    protected String initialContextFactory     = 
+        SUN_CONTEXT_FACTORY;
+    
+    protected String  securityAuthentication = 
+        SIMPLE_SECURITY_AUTHENTICATION_VALUE;
+    
+    protected String  securityPrincipal            = 
+        DEFAULT_SECURITY_PRINCIPAL_VALUE;
+    
+    protected String credentials                      =
+        DEFAULT_SECURITY_CREDENTIALS_VALUE;
+
+    public Hashtable<String,Object> createEnvironment(
+    		Hashtable<String, Object> env)
+    {
+      providerURL                                                  =
+            providerHost + providerPath;
+
+        env.put( 
+            Context.PROVIDER_URL,
+            providerURL);
+
+        env.put( 
+            Context.INITIAL_CONTEXT_FACTORY, 
+            initialContextFactory );
+
+        env.put( 
+            Context.SECURITY_AUTHENTICATION, 
+            securityAuthentication);
+        
+        env.put( 
+            Context.SECURITY_PRINCIPAL, 
+            securityPrincipal );
+        
+        env.put( 
+            Context.SECURITY_CREDENTIALS, 
+            credentials );
+        
+        return env;
+    }
+
+    public LdapContext connect() throws NamingException
+    {
+    	Hashtable<String, Object> env = 
+    		new Hashtable<String, Object>();
+    	
+        return new InitialLdapContext(
+        		createEnvironment(env), null);
+    }
+    
+    public void setUp() throws Exception
+    {
+    	super.setUp();
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIConnectionTemplateTest.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,45 @@
+package org.apache.directory.apacheds.testing.setup;
+
+import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
+
+/*
+ * These tests require a running server.
+ */
+public class JNDIConnectionTemplateTest extends JNDIConnectionTemplate  
+{
+	private static LdapContext systemContext  = null;
+	private static LdapContext schemaContext = null;
+	
+    public void tearDown() throws NamingException, Exception
+    {
+        super.tearDown();
+    }
+    
+    public void setUp() throws NamingException, Exception
+    {
+        super.setUp();
+    }
+    
+    public void testSystemContextConnection() 
+    throws NamingException
+    {
+    	systemContext = connect();
+    	assertNotNull( systemContext );
+        assertNotNull( connect() );
+        assertEquals(
+        		systemContext.getNameInNamespace(), "ou=system");
+    }
+    
+    public void testSchemaContextConnection() 
+    throws NamingException
+    {
+    	providerPath    = SCHEMA_PROVIDER_PATH;
+    	schemaContext = connect();
+    	assertNotNull (schemaContext);
+        assertNotNull(connect());
+        assertEquals(
+        		schemaContext.getNameInNamespace(), 
+        		"ou=schema");
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplate.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,129 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.apacheds.testing.setup;
+
+import java.util.Hashtable;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.naming.ldap.InitialLdapContext;
+import javax.naming.ldap.LdapContext;
+
+import org.apache.directory.server.core.configuration.MutableStartupConfiguration;
+import org.apache.directory.server.core.configuration.ShutdownConfiguration;
+import org.apache.log4j.PropertyConfigurator;
+
+/**
+ * The Class JNDIEmbeddedConnectionTemplate.
+ */
+public abstract class JNDIEmbeddedConnectionTemplate
+extends JNDIConnectionTemplate
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        Hashtable<String,Object> env = 
+        	new Hashtable<String,Object>();
+        
+        env = createEnvironment(env);
+        
+        env.put( 
+        		Context.PROVIDER_URL, 
+        		SYSTEM_PROVIDER_PATH);
+        env.put( 
+        		Context.INITIAL_CONTEXT_FACTORY, 
+        		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+        env.putAll( 
+        		new ShutdownConfiguration().toJndiEnvironment() );
+        
+        new InitialContext( env );
+        Runtime.getRuntime().gc();
+        super.tearDown();
+    }
+    
+    
+    
+    public void setUp() throws Exception
+    {
+    	PropertyConfigurator.
+    	configure(NLOG4J_CONFIGURATION_FILEPATH);
+        super.setUp();
+    }
+    
+	/**
+	 * Connect to an embedded ApacheDS server.
+	 * 
+	 * @param providerPath the provider path ("ou=schema", ou="system", etc.)
+	 * 
+	 * @return the ldap context
+	 * 
+	 * @throws NamingException the naming exception
+	 */
+	public LdapContext connect( String providerPath ) throws NamingException
+	{
+		 MutableStartupConfiguration mutableStartupConfiguration = 
+	    		new MutableStartupConfiguration();
+		 
+	    Hashtable<String,Object> adminEnv  =
+	    	new Hashtable<String,Object>( );
+	    
+	    adminEnv.putAll( 
+	    			mutableStartupConfiguration.
+	    			toJndiEnvironment());
+	    
+	    adminEnv.put( 
+	    		Context.PROVIDER_URL, 
+	    		SYSTEM_PROVIDER_PATH);
+	    adminEnv.put( 
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    adminEnv.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+   		new InitialLdapContext( adminEnv, null );
+
+   		
+   		
+	    Hashtable<String,Object> env            = 
+	    	new Hashtable<String,Object>();
+	    
+	    env.put( 
+	    		Context.INITIAL_CONTEXT_FACTORY, 
+	    		"org.apache.directory.server.core.jndi.CoreContextFactory" );
+	    env.put( 	    		
+	    		Context.SECURITY_PRINCIPAL, 
+	    		DEFAULT_SECURITY_PRINCIPAL_VALUE);
+	    env.put( 
+	    		Context.SECURITY_CREDENTIALS, 
+	    		DEFAULT_SECURITY_CREDENTIALS_VALUE);
+	    env.put( 
+	    		Context.SECURITY_AUTHENTICATION, 
+	    		SIMPLE_SECURITY_AUTHENTICATION_VALUE );
+	    env.put( Context.PROVIDER_URL, providerPath );
+	    
+	    env.put( Context.PROVIDER_URL, providerPath );
+		
+	    return new InitialLdapContext( env, null );
+		
+	}
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/apacheds/testing/setup/JNDIEmbeddedConnectionTemplateTest.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,29 @@
+package org.apache.directory.apacheds.testing.setup;
+
+import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
+
+public class JNDIEmbeddedConnectionTemplateTest 
+extends JNDIEmbeddedConnectionTemplate  
+{
+    public void tearDown() throws NamingException, Exception
+    {
+        super.tearDown();
+    }
+    
+    public void setUp() throws Exception
+    {
+        super.setUp();
+
+    }
+    public void testConnect() throws NamingException
+    {
+    	LdapContext ldapContext =null;
+    	
+	    ldapContext =connect("ou=schema");
+	    
+	    assertEquals(
+	    		"ou=schema", 
+	    		ldapContext.getNameInNamespace()); 
+    }
+}
\ No newline at end of file

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/java/org/apache/directory/connection/constants/ApacheDSConnectionConstants.java
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,48 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.connection.constants;
+
+public interface ApacheDSConnectionConstants
+{
+    String APACHE_CONTEXT_FACTORY                          =
+        "org.apache.directory.server.core.jndi.CoreContextFactory";
+
+    String SUN_CONTEXT_FACTORY                                =
+        "com.sun.jndi.ldap.LdapCtxFactory";
+    
+    String SIMPLE_SECURITY_AUTHENTICATION_VALUE = 
+        "simple";
+    
+    String DEFAULT_SECURITY_PRINCIPAL_VALUE          = 
+        "uid=admin,ou=system";
+    
+    String DEFAULT_SECURITY_CREDENTIALS_VALUE    = 
+        "secret";
+    
+    String SCHEMA_PROVIDER_PATH                              =
+    	"ou=schema";
+    
+    String SYSTEM_PROVIDER_PATH                               =
+    	"ou=system";
+    
+    String NLOG4J_CONFIGURATION_FILEPATH              =
+    	"src/test/resources/log4j.properties";
+    	
+}

Added: directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/resources/log4j.properties?view=auto&rev=547275
==============================================================================
--- directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/resources/log4j.properties
(added)
+++ directory/sandbox/oersoy/apacheds.testing.archetype/target/classes/archetype-resources/src/test/resources/log4j.properties
Thu Jun 14 08:19:06 2007
@@ -0,0 +1,6 @@
+log4j.rootCategory=ERROR, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+



Mime
View raw message