[REORG-2531] Updated a test to illustrate use of File.separator
This commit is contained in:
parent
bb966c8e14
commit
e03c0871ae
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue