minor fix
This commit is contained in:
parent
412a93ce68
commit
5a6ab35333
|
@ -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
|
||||||
|
|
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Hello world
|
|
@ -0,0 +1 @@
|
||||||
|
Hello world !
|
Loading…
Reference in New Issue