[REORG-2531] Updated a test to illustrate use of File.separator

This commit is contained in:
dupirefr 2019-01-19 23:14:25 +01:00
parent bb966c8e14
commit e03c0871ae
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class NewDirectoryUnitTest {
@Test
public void givenUnexistingNestedDirectories_whenMkdirs_thenTrue() {
File newDirectory = new File(TEMP_DIRECTORY, "new_directory");
File newDirectory = new File(System.getProperty("java.io.tmpdir") + File.separator + "new_directory");
File nestedDirectory = new File(newDirectory, "nested_directory");
assertFalse(newDirectory.exists());
assertFalse(nestedDirectory.exists());