public final class PathAssert
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
PathAssert() |
Modifier and Type | Method and Description |
---|---|
static void |
assertDirExists(java.lang.String msg,
java.io.File path)
Assert that the Directory exist.
|
static void |
assertDirExists(java.lang.String msg,
java.nio.file.Path path)
Assert that the Directory path exist.
|
static void |
assertExists(java.lang.String msg,
java.io.File path)
Deprecated.
use
assertPathExists(String, File) instead |
static void |
assertExists(java.lang.String msg,
java.nio.file.Path path)
Deprecated.
use
assertPathExists(String, Path) instead |
static void |
assertFileExists(java.lang.String msg,
java.io.File path)
Assert that the File exist.
|
static void |
assertFileExists(java.lang.String msg,
java.nio.file.Path path)
Assert that the File exist.
|
static void |
assertNotExists(java.lang.String msg,
java.io.File path)
Deprecated.
use
assertNotPathExists(String, File) instead |
static void |
assertNotExists(java.lang.String msg,
java.nio.file.Path path)
Deprecated.
use
assertNotPathExists(String, Path) instead |
static void |
assertNotPathExists(java.lang.String msg,
java.io.File path)
Assert that the path does not exist.
|
static void |
assertNotPathExists(java.lang.String msg,
java.nio.file.Path path)
Assert that the path does not exist.
|
static void |
assertPathExists(java.lang.String msg,
java.io.File path)
Assert that the path exist.
|
static void |
assertPathExists(java.lang.String msg,
java.nio.file.Path path)
Assert that the path exist.
|
public static void assertDirExists(java.lang.String msg, java.io.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(java.lang.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(java.lang.String msg, java.io.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(java.lang.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(java.lang.String msg, java.io.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(java.lang.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(java.lang.String msg, java.io.File path)
msg
- message about the test (used in case of assertion failure)path
- the path that should existpublic static void assertPathExists(java.lang.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(java.lang.String msg, java.io.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(java.lang.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(java.lang.String msg, java.io.File path)
msg
- message about the test (used in case of assertion failure)path
- the path that should not existpublic static void assertNotPathExists(java.lang.String msg, java.nio.file.Path path)
msg
- message about the test (used in case of assertion failure)path
- the path that should not exist