Skip to content
Snippets Groups Projects
Commit 95bfa397 authored by felmer's avatar felmer
Browse files

change test directory and delete it before creation

SVN: 4555
parent 0750ff5a
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ import ch.systemsx.cisd.common.utilities.FileUtilities; ...@@ -33,7 +33,7 @@ import ch.systemsx.cisd.common.utilities.FileUtilities;
*/ */
public class DumpPreparatorTest public class DumpPreparatorTest
{ {
private static final File TEST_FOLDER = new File("targets"); private static final File TEST_FOLDER = new File("targets/unit-test-wd/dump-preparator");
private static final String EXAMPLE = "--\n" + private static final String EXAMPLE = "--\n" +
"-- PostgreSQL database dump\n" + "-- PostgreSQL database dump\n" +
...@@ -109,9 +109,10 @@ public class DumpPreparatorTest ...@@ -109,9 +109,10 @@ public class DumpPreparatorTest
@Test @Test
public void test() throws IOException public void test() throws IOException
{ {
FileUtilities.deleteRecursively(TEST_FOLDER);
StringReader reader = new StringReader(EXAMPLE); StringReader reader = new StringReader(EXAMPLE);
File folder = new File(TEST_FOLDER, "011"); File folder = new File(TEST_FOLDER, "011");
folder.mkdir(); folder.mkdirs();
assertEquals(true, folder.exists()); assertEquals(true, folder.exists());
DumpPreparator.createUploadFiles(reader, folder); DumpPreparator.createUploadFiles(reader, folder);
......
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