Skip to content

Commit 849ec67

Browse files
committed
feat: create utility init a new File #90 (fix test)
1 parent 59423cb commit 849ec67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fj-core/src/test/java/test/org/fugerit/java/core/io/TestFileIO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void testNewFile() throws IOException {
3636

3737
@Test
3838
public void testCreateFullFile() throws IOException {
39-
String baseDir0 = "target";
39+
String baseDir0 = "target/";
4040
String baseDir1 = "target/path/";
4141
String fileName = "not-exists-alt.txt";
4242
String fileNameExists = "classes";
@@ -47,11 +47,11 @@ public void testCreateFullFile() throws IOException {
4747
file1.delete();
4848
file1.getParentFile().delete();
4949
file2.delete();
50-
Assert.assertTrue( FileIO.createFullFile( new File( baseDir1 ) ) );
5150
Assert.assertTrue( FileIO.createFullFile( file0 ) );
5251
Assert.assertTrue( FileIO.createFullFile( file1 ) );
5352
Assert.assertFalse( FileIO.createFullFile( file0 ) );
5453
Assert.assertFalse( FileIO.createFullFile( file2 ) );
54+
Assert.assertFalse( FileIO.createFullFile( new File( baseDir1 ) ) );
5555
}
5656

5757
}

0 commit comments

Comments
 (0)