public final class FileMatchers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FileMatchers.FileStatus |
Modifier and Type | Field and Description |
---|---|
static FileMatchers.FileStatus |
CAN_READ |
static FileMatchers.FileStatus |
CAN_WRITE |
static FileMatchers.FileStatus |
EXISTS |
static FileMatchers.FileStatus |
IS_DIRECTORY |
static FileMatchers.FileStatus |
IS_FILE |
Constructor and Description |
---|
FileMatchers() |
Modifier and Type | Method and Description |
---|---|
static Matcher<java.io.File> |
aFileNamed(Matcher<java.lang.String> expected) |
static Matcher<java.io.File> |
aFileWithAbsolutePath(Matcher<java.lang.String> expected) |
static Matcher<java.io.File> |
aFileWithCanonicalPath(Matcher<java.lang.String> expected) |
static Matcher<java.io.File> |
aFileWithSize(long size) |
static Matcher<java.io.File> |
aFileWithSize(Matcher<java.lang.Long> expected) |
static Matcher<java.io.File> |
anExistingDirectory() |
static Matcher<java.io.File> |
anExistingFile() |
static Matcher<java.io.File> |
anExistingFileOrDirectory() |
static Matcher<java.io.File> |
aReadableFile() |
static Matcher<java.io.File> |
aWritableFile() |
public static final FileMatchers.FileStatus CAN_WRITE
public static final FileMatchers.FileStatus CAN_READ
public static final FileMatchers.FileStatus IS_FILE
public static final FileMatchers.FileStatus IS_DIRECTORY
public static final FileMatchers.FileStatus EXISTS
public static Matcher<java.io.File> anExistingDirectory()
public static Matcher<java.io.File> anExistingFileOrDirectory()
public static Matcher<java.io.File> anExistingFile()
public static Matcher<java.io.File> aReadableFile()
public static Matcher<java.io.File> aWritableFile()
public static Matcher<java.io.File> aFileWithSize(long size)
public static Matcher<java.io.File> aFileWithCanonicalPath(Matcher<java.lang.String> expected)