minor fix

This commit is contained in:
DOHA 2016-10-29 16:56:13 +02:00
parent 412a93ce68
commit 5a6ab35333
4 changed files with 5 additions and 2 deletions

View File

@ -19,13 +19,13 @@ import org.junit.Before;
import org.junit.Test; import org.junit.Test;
public class JavaFolderSizeUnitTest { public class JavaFolderSizeUnitTest {
private final long EXPECTED_SIZE = 381; private final long EXPECTED_SIZE = 24;
private String path; private String path;
@Before @Before
public void init() { public void init() {
final String separator = File.separator; final String separator = File.separator;
path = String.format("src%stest%sresources", separator, separator); path = String.format("src%stest%sresources%stestFolder", separator, separator, separator);
} }
@Test @Test

View File

@ -76,6 +76,7 @@ public class JavaFileUnitTest {
@Test @Test
public final void givenUsingApache_whenMovingFile_thenCorrect() throws IOException { public final void givenUsingApache_whenMovingFile_thenCorrect() throws IOException {
FileUtils.touch(new File("src/test/resources/fileToMove_apache.txt"));
FileUtils.moveFile(FileUtils.getFile("src/test/resources/fileToMove_apache.txt"), FileUtils.getFile("src/test/resources/fileMoved_apache2.txt")); FileUtils.moveFile(FileUtils.getFile("src/test/resources/fileToMove_apache.txt"), FileUtils.getFile("src/test/resources/fileMoved_apache2.txt"));
} }

View File

@ -0,0 +1 @@
Hello world

View File

@ -0,0 +1 @@
Hello world !