com.mockobjects.io
public class MockFile extends MockObject implements File
Method Summary | |
---|---|
boolean | canRead() |
boolean | canWrite() |
int | compareTo(File pathname) |
int | compareTo(Object o) |
boolean | createNewFile() |
File | createTempFile(String prefix, String suffix, File directory) |
File | createTempFile(String prefix, String suffix) |
boolean | delete() |
void | deleteOnExit() |
boolean | exists() |
File | getAbsoluteFile() |
String | getAbsolutePath() |
File | getCanonicalFile() |
String | getCanonicalPath() |
String | getName() |
String | getParent() |
File | getParentFile() |
String | getPath() |
File | getRealFile() |
boolean | isAbsolute() |
boolean | isDirectory() |
boolean | isFile() |
boolean | isHidden() |
long | lastModified() |
long | length() |
String[] | list() |
String[] | list(FilenameFilter filter) |
File[] | listFiles() |
File[] | listFiles(FilenameFilter aFilenameFilter) |
File[] | listFiles(FileFilter filter) |
File[] | listRoots() |
boolean | mkdir() |
boolean | mkdirs() |
boolean | renameTo(File dest) |
void | setExpectedFilenameFilter(FilenameFilter aFilenameFilter) |
boolean | setLastModified(long time) |
boolean | setReadOnly() |
void | setupExists(boolean exists) |
void | setupGetAbsolutePath(String absolutePath) |
void | setupGetName(String name) |
void | setupGetParent(String aParent) |
void | setupGetParentFile(File parentFile) |
void | setupGetPath(String aPath) |
void | setupGetRealFile(File file) |
void | setupListFile(File[] aFilesToReturn) |
void | setupMkdirs(boolean mkdirs, int count) |
URL | toURL() |