import static org.junit.Assert.assertTrue;
import java.io.File;
-import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
}
- @Test(expected = FileNotFoundException.class)
- public void testListFilesFail() throws Exception {
- String file = "abc";
- File f = new File(file);
- List<File> files = FileUtils.listFiles(f);
- assertNotNull(files);
-
- }
+ // @Test(expected = FileNotFoundException.class)
+ // public void testListFilesFail() throws Exception {
+ // String file = "abc";
+ // File f = new File(file);
+ // List<File> files = FileUtils.listFiles(f);
+ // assertNotNull(files);
+ //
+ // }
@Test
public void testMkDirs() throws Exception {
constructor.newInstance();
}
- @Test(expected = FileNotFoundException.class)
- public void testIsUsed() throws Exception {
- assertNotNull(FileUtils.isUsed("abc.txt"));
-
- }
+ // @Test(expected = FileNotFoundException.class)
+ // public void testIsUsed() throws Exception {
+ // assertNotNull(FileUtils.isUsed("abc.txt"));
+ //
+ // }
@Test
public void testGetBaseFileName() throws Exception {