Skip to content
Snippets Groups Projects
Commit c1e92f15 authored by brinn's avatar brinn
Browse files

change: make the setup of the tests more robust with regard to 'vanishing...

change: make the setup of the tests more robust with regard to 'vanishing files' (since we have a QueueingPathRemover running)

SVN: 7856
parent 1bb91bcd
No related branches found
No related tags found
No related merge requests found
...@@ -16,10 +16,11 @@ ...@@ -16,10 +16,11 @@
package ch.systemsx.cisd.common.utilities; package ch.systemsx.cisd.common.utilities;
import static org.testng.AssertJUnit.assertTrue;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.testng.annotations.AfterClass; import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeMethod;
...@@ -66,8 +67,9 @@ public abstract class AbstractFileSystemTestCase ...@@ -66,8 +67,9 @@ public abstract class AbstractFileSystemTestCase
@BeforeMethod @BeforeMethod
public void setUp() throws IOException public void setUp() throws IOException
{ {
FileUtils.cleanDirectory(workingDirectory); FileUtilities.deleteRecursively(workingDirectory);
assert workingDirectory.isDirectory() && workingDirectory.listFiles().length == 0; workingDirectory.mkdir();
assertTrue(workingDirectory.isDirectory() && workingDirectory.listFiles().length == 0);
} }
@AfterClass @AfterClass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment