Skip to content

Commit 5a6ab35

Browse files
committed
minor fix
1 parent 412a93c commit 5a6ab35

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎core-java/src/test/java/com/baeldung/java8/JavaFolderSizeUnitTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
import org.junit.Test;
2020

2121
public class JavaFolderSizeUnitTest {
22-
private final long EXPECTED_SIZE = 381;
22+
private final long EXPECTED_SIZE = 24;
2323
private String path;
2424

2525
@Before
2626
public void init() {
2727
final String separator = File.separator;
28-
path = String.format("src%stest%sresources", separator, separator);
28+
path = String.format("src%stest%sresources%stestFolder", separator, separator, separator);
2929
}
3030

3131
@Test

‎core-java/src/test/java/org/baeldung/java/io/JavaFileUnitTest.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public final void givenUsingGuava_whenMovingFile_thenCorrect() throws IOExceptio
7676

7777
@Test
7878
public final void givenUsingApache_whenMovingFile_thenCorrect() throws IOException {
79+
FileUtils.touch(new File("src/test/resources/fileToMove_apache.txt"));
7980
FileUtils.moveFile(FileUtils.getFile("src/test/resources/fileToMove_apache.txt"), FileUtils.getFile("src/test/resources/fileMoved_apache2.txt"));
8081
}
8182

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world !

0 commit comments

Comments
 (0)