directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r893762 - /directory/apacheds/branches/apacheds-schema/core-builder/src/test/java/org/apache/directory/server/core/builder/DirectoryServiceBuilderTest.java
Date Thu, 24 Dec 2009 13:51:55 GMT
Author: elecharny
Date: Thu Dec 24 13:51:55 2009
New Revision: 893762

URL: http://svn.apache.org/viewvc?rev=893762&view=rev
Log:
Added a test for the builder

Added:
    directory/apacheds/branches/apacheds-schema/core-builder/src/test/java/org/apache/directory/server/core/builder/DirectoryServiceBuilderTest.java

Added: directory/apacheds/branches/apacheds-schema/core-builder/src/test/java/org/apache/directory/server/core/builder/DirectoryServiceBuilderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core-builder/src/test/java/org/apache/directory/server/core/builder/DirectoryServiceBuilderTest.java?rev=893762&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core-builder/src/test/java/org/apache/directory/server/core/builder/DirectoryServiceBuilderTest.java
(added)
+++ directory/apacheds/branches/apacheds-schema/core-builder/src/test/java/org/apache/directory/server/core/builder/DirectoryServiceBuilderTest.java
Thu Dec 24 13:51:55 2009
@@ -0,0 +1,47 @@
+/*
+ *   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.server.core.builder;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.directory.server.core.DirectoryService;
+import org.junit.Test;
+
+
+/**
+ * TODO DirectoryServiceBuilderTest.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class DirectoryServiceBuilderTest
+{
+    @Test
+    public void testCreateDS() throws Exception
+    {
+        DirectoryServiceBuilder builder = new DirectoryServiceBuilder();
+        builder.build( "Test" );
+        
+        DirectoryService service = builder.getDirectoryService();
+        
+        service.shutdown();
+        FileUtils.deleteDirectory( service.getWorkingDirectory() );
+    }
+}



Mime
View raw message