You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/03/29 08:45:09 UTC

[camel] branch master updated: CAMEL-13368: Move the deleteDirectory invocation into the tearDown

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 12eea4b  CAMEL-13368: Move the deleteDirectory invocation into the tearDown
12eea4b is described below

commit 12eea4b6fb02a3ce96a3cc067bd844cb9b89ecab
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 29 09:44:38 2019 +0100

    CAMEL-13368: Move the deleteDirectory invocation into the tearDown
---
 .../test/java/org/apache/camel/component/leveldb/LevelDBSetupTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBSetupTest.java b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBSetupTest.java
index 03663c3..6e1e4c3 100644
--- a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBSetupTest.java
+++ b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBSetupTest.java
@@ -33,6 +33,7 @@ public class LevelDBSetupTest extends CamelTestSupport {
 
     @Override
     public void tearDown() throws Exception {
+        deleteDirectory("leveldb.dat");
         super.tearDown();
     }
 
@@ -41,7 +42,6 @@ public class LevelDBSetupTest extends CamelTestSupport {
      */
     @Test
     public void testLevelDBStartWithNoPath() {
-        deleteDirectory("leveldb.dat");
         levelDBFile = new LevelDBFile();
         levelDBFile.setFileName("leveldb.dat");
         levelDBFile.start();