Merge pull request #6172 from FDPro/bael-2531

dupirefr/dupire.francois+pro@gmail.com [REORG-2531] Updated a test to illustrate use of File.separator
This commit is contained in:
Loredana Crusoveanu 2019-01-20 10:00:29 +02:00 committed by GitHub
commit 3c7480d0ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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());