directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r493900 - /directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/schema/PartitionSchemaLoaderTest.java
Date Mon, 08 Jan 2007 01:48:44 GMT
Author: akarasulu
Date: Sun Jan  7 17:48:43 2007
New Revision: 493900

URL: http://svn.apache.org/viewvc?view=rev&rev=493900
Log:
bad test case causing issues when trying to delete a file on windows

Modified:
    directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/schema/PartitionSchemaLoaderTest.java

Modified: directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/schema/PartitionSchemaLoaderTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/schema/PartitionSchemaLoaderTest.java?view=diff&rev=493900&r1=493899&r2=493900
==============================================================================
--- directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/schema/PartitionSchemaLoaderTest.java
(original)
+++ directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/schema/PartitionSchemaLoaderTest.java
Sun Jan  7 17:48:43 2007
@@ -67,19 +67,18 @@
     private MutableStartupConfiguration startupConfiguration = new MutableStartupConfiguration();
     private DirectoryServiceConfiguration configuration;
     private JdbmPartition schemaPartition;
-    
-    
+
+
     public void setUp() throws Exception
     {
         super.setUp();
 
         // setup working directory
         File workingDirectory = new File( System.getProperty( "workingDirectory" ) );
-        if ( workingDirectory.exists() )
+        if ( ! workingDirectory.exists() )
         {
-            FileUtils.deleteDirectory( workingDirectory );
+            workingDirectory.mkdirs();
         }
-        workingDirectory.mkdirs();
         startupConfiguration.setWorkingDirectory( workingDirectory );
         
         // --------------------------------------------------------------------



Mime
View raw message