Author: fchrist
Date: Fri Jun 24 10:34:50 2011
New Revision: 1139233

URL: http://svn.apache.org/viewvc?rev=1139233&view=rev
Log:
STANBOL-237 Fixed problem when re-running integration tests without a clean.

Modified:
    
incubator/stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/FactStoreTest.java

Modified: 
incubator/stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/FactStoreTest.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/FactStoreTest.java?rev=1139233&r1=1139232&r2=1139233&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/FactStoreTest.java
 (original)
+++ 
incubator/stanbol/trunk/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/FactStoreTest.java
 Fri Jun 24 10:34:50 2011
@@ -9,7 +9,7 @@ import org.apache.http.client.methods.Ht
 import org.apache.http.client.methods.HttpPut;
 import org.apache.stanbol.commons.testing.http.Request;
 import org.apache.stanbol.commons.testing.stanbol.StanbolTestBase;
-import org.junit.BeforeClass;
+import org.junit.AfterClass;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -18,13 +18,13 @@ public class FactStoreTest extends Stanb
 
     private static final Logger log = 
LoggerFactory.getLogger(FactStoreTest.class);
 
-    @BeforeClass
+    @AfterClass
     public static void cleanDatabase() throws Exception {
         String workingDirName = 
System.getProperty("jar.executor.workingdirectory");
         if (workingDirName != null) {
             File workingDir = new File(workingDirName);
             File factstore = new File(workingDir, "factstore");
-            log.info("Preparing FactStore and deleting " + 
factstore.getAbsolutePath());
+            log.info("Deleting integration test FactStore " + 
factstore.getAbsolutePath());
             FileUtils.deleteDirectory(factstore);
         }
     }


Reply via email to