Package org.eclipse.jetty.toolchain.test
Class PathAssert
- java.lang.Object
-
- org.eclipse.jetty.toolchain.test.PathAssert
-
public final class PathAssert extends java.lang.Object
Assertions of various FileSytem Paths
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PathAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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
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
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.
-
-
-
Method Detail
-
assertDirExists
public static void assertDirExists(java.lang.String msg, java.io.File path)
Assert that the Directory exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should exist, and be a directory
-
assertDirExists
public static void assertDirExists(java.lang.String msg, java.nio.file.Path path)
Assert that the Directory path exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should exist, and be a directory
-
assertFileExists
public static void assertFileExists(java.lang.String msg, java.io.File path)
Assert that the File exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should exist, and be a file
-
assertFileExists
public static void assertFileExists(java.lang.String msg, java.nio.file.Path path)
Assert that the File exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should exist, and be a file
-
assertPathExists
public static void assertPathExists(java.lang.String msg, java.io.File path)
Assert that the path exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should exist
-
assertPathExists
public static void assertPathExists(java.lang.String msg, java.nio.file.Path path)
Assert that the path exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should exist
-
assertNotPathExists
public static void assertNotPathExists(java.lang.String msg, java.io.File path)
Assert that the path does not exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should not exist
-
assertNotPathExists
public static void assertNotPathExists(java.lang.String msg, java.nio.file.Path path)
Assert that the path does not exist.- Parameters:
msg
- message about the test (used in case of assertion failure)path
- the path that should not exist
-
-