public final class PathAssert extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertDirExists(String msg,
File path)
Assert that the Directory exist.
|
static void |
assertDirExists(String msg,
java.nio.file.Path path)
Assert that the Directory path exist.
|
static void |
assertExists(String msg,
File path)
Deprecated.
use
assertPathExists(String, File) instead |
static void |
assertExists(String msg,
java.nio.file.Path path)
Deprecated.
use
assertPathExists(String, Path) instead |
static void |
assertFileExists(String msg,
File path)
Assert that the File exist.
|
static void |
assertFileExists(String msg,
java.nio.file.Path path)
Assert that the File exist.
|
static void |
assertNotExists(String msg,
File path)
Deprecated.
use
assertNotPathExists(String, File) instead |
static void |
assertNotExists(String msg,
java.nio.file.Path path)
Deprecated.
use
assertNotPathExists(String, Path) instead |
static void |
assertNotPathExists(String msg,
File path)
Assert that the path does not exist.
|
static void |
assertNotPathExists(String msg,
java.nio.file.Path path)
Assert that the path does not exist.
|
static void |
assertPathExists(String msg,
File path)
Assert that the path exist.
|
static void |
assertPathExists(String msg,
java.nio.file.Path path)
Assert that the path exist.
|
public static void assertDirExists(String msg, File path)
msg - message about the test (used in case of assertion failure)path - the path that should exist, and be a directorypublic static void assertDirExists(String msg, java.nio.file.Path path)
msg - message about the test (used in case of assertion failure)path - the path that should exist, and be a directorypublic static void assertFileExists(String msg, File path)
msg - message about the test (used in case of assertion failure)path - the path that should exist, and be a filepublic static void assertFileExists(String msg, java.nio.file.Path path)
msg - message about the test (used in case of assertion failure)path - the path that should exist, and be a file@Deprecated public static void assertExists(String msg, File path)
assertPathExists(String, File) insteadmsg - message about the test (used in case of assertion failure)path - the path that should exist@Deprecated public static void assertExists(String msg, java.nio.file.Path path)
assertPathExists(String, Path) insteadmsg - message about the test (used in case of assertion failure)path - the path that should existpublic static void assertPathExists(String msg, File path)
msg - message about the test (used in case of assertion failure)path - the path that should existpublic static void assertPathExists(String msg, java.nio.file.Path path)
msg - message about the test (used in case of assertion failure)path - the path that should exist@Deprecated public static void assertNotExists(String msg, File path)
assertNotPathExists(String, File) insteadmsg - message about the test (used in case of assertion failure)path - the path that should not exist@Deprecated public static void assertNotExists(String msg, java.nio.file.Path path)
assertNotPathExists(String, Path) insteadmsg - message about the test (used in case of assertion failure)path - the path that should not existpublic static void assertNotPathExists(String msg, File path)
msg - message about the test (used in case of assertion failure)path - the path that should not existpublic static void assertNotPathExists(String msg, java.nio.file.Path path)
msg - message about the test (used in case of assertion failure)path - the path that should not existCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.