Assert.
Presents assertion methods with a more natural parameter order. The order is always
actualValue, expectedValue [, message].
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | assertDirectory(File
the file to evaluate tstvalue, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | assertFile(File
the file to evaluate tstvalue, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | assertLength(File
the file to evaluate tstvalue, long the expected value expected, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | assertMaxLength(File
the file to evaluate tstvalue, long The expected max length expected, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | assertMinLength(File
the file to evaluate tstvalue, long the expected value expected, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | assertReadable(File
the file to evaluate tstvalue, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | assertReadWrite(File
the file to evaluate tstvalue, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | assertWriteable(File
the file to evaluate tstvalue, String the assertion error message message)Asserts that a |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| private static void | |
| private static void | |
| private static String | |
| private static String | |
| private static String |
| FileAssert | back to summary |
|---|---|
| private FileAssert() Protect this constructor since it is a static only class. | |
| assertDirectory | back to summary |
|---|---|
| public static void assertDirectory(File tstvalue, String message) Asserts that a | |
| assertDirectory | back to summary |
|---|---|
| public static void assertDirectory(File tstvalue) | |
| assertFile | back to summary |
|---|---|
| public static void assertFile(File tstvalue, String message) Asserts that a | |
| assertFile | back to summary |
|---|---|
public static void assertFile(File tstvalue)
| |
| assertLength | back to summary |
|---|---|
| public static void assertLength(File tstvalue, long expected, String message) Asserts that a | |
| assertLength | back to summary |
|---|---|
public static void assertLength(File tstvalue, long expected)
| |
| assertMaxLength | back to summary |
|---|---|
| public static void assertMaxLength(File tstvalue, long expected, String message) Asserts that a | |
| assertMaxLength | back to summary |
|---|---|
public static void assertMaxLength(File tstvalue, long expected)
| |
| assertMinLength | back to summary |
|---|---|
| public static void assertMinLength(File tstvalue, long expected, String message) Asserts that a | |
| assertMinLength | back to summary |
|---|---|
public static void assertMinLength(File tstvalue, long expected)
| |
| assertReadable | back to summary |
|---|---|
| public static void assertReadable(File tstvalue, String message) Asserts that a | |
| assertReadable | back to summary |
|---|---|
public static void assertReadable(File tstvalue)
| |
| assertReadWrite | back to summary |
|---|---|
| public static void assertReadWrite(File tstvalue, String message) Asserts that a | |
| assertReadWrite | back to summary |
|---|---|
public static void assertReadWrite(File tstvalue)
| |
| assertWriteable | back to summary |
|---|---|
| public static void assertWriteable(File tstvalue, String message) Asserts that a | |
| assertWriteable | back to summary |
|---|---|
public static void assertWriteable(File tstvalue)
| |
| fail | back to summary |
|---|---|
| public static void fail(String message, Throwable realCause) Fails a test with the given message and wrapping the original exception. | |
| fail | back to summary |
|---|---|
| public static void fail(String message) Fails a test with the given message.
| |
| fail | back to summary |
|---|---|
| public static void fail() Fails a test with no message. | |
| failFile | back to summary |
|---|---|
| private static void failFile(File path, String actual, String expected, String message) Formats failure for file assertions. | |
| failSecurity | back to summary |
|---|---|
| private static void failSecurity(Exception e, File path, String actual, String expected, String message) | |
| fileAccess | back to summary |
|---|---|
| private static String fileAccess(File path) String representation of read and write permissions of | |
| fileType | back to summary |
|---|---|
| private static String fileType(File path) String representation of what sort of file | |
| toString | back to summary |
|---|---|
| private static String toString(File path) | |