Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/tests/java/nio/file/FilesTest.java
package tests.java.nio.file;

import static org.junit.Assert.assertTrue;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;

import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Test;

import com.github.jjYBdx4IL.utils.env.Maven;

/**
 *
 * @author Github jjYBdx4IL Projects
 */
public class FilesTest {

    private static final File TEMP_DIR = Maven.getTempTestDir(FilesTest.class);

    @Before
    public void beforeTest() throws IOException {
        FileUtils.cleanDirectory(TEMP_DIR);
    }

    @Test
    public void testExists() {
        assertTrue(Files.exists(TEMP_DIR.toPath()));
    }

}
-------------------------------------------------------------------------------
Test set: tests.java.nio.file.FilesTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in tests.java.nio.file.FilesTest
testExists  Time elapsed: 0 s