Skip to content
Snippets Groups Projects
Commit 015e5abf authored by tpylak's avatar tpylak
Browse files

minor: fix unit tests

SVN: 11582
parent e6d6ed68
No related branches found
No related tags found
No related merge requests found
...@@ -67,11 +67,23 @@ public abstract class AbstractFileSystemTestCase extends AssertJUnit ...@@ -67,11 +67,23 @@ public abstract class AbstractFileSystemTestCase extends AssertJUnit
@BeforeMethod @BeforeMethod
public void setUp() throws IOException public void setUp() throws IOException
{ {
FileUtils.deleteDirectory(workingDirectory); deleteDirectory(workingDirectory);
workingDirectory.mkdir(); workingDirectory.mkdir();
assertTrue(workingDirectory.isDirectory() && workingDirectory.listFiles().length == 0); assertTrue(workingDirectory.isDirectory() && workingDirectory.listFiles().length == 0);
} }
private void deleteDirectory(File dir)
{
try
{
FileUtils.deleteDirectory(dir);
} catch (IOException e)
{
System.err.println("Could not delete the directory " + dir.getPath() + " because: "
+ e.getMessage());
}
}
@AfterClass @AfterClass
public void afterClass() throws IOException public void afterClass() throws IOException
{ {
......
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