Package org.eclipse.jetty.toolchain.test
Class PathAssert
- java.lang.Object
-
- org.eclipse.jetty.toolchain.test.PathAssert
-
public final class PathAssert extends java.lang.ObjectAssertions of various FileSytem Paths
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePathAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertDirExists(java.lang.String msg, java.io.File path)Assert that the Directory exist.static voidassertDirExists(java.lang.String msg, java.nio.file.Path path)Assert that the Directory path exist.static voidassertFileExists(java.lang.String msg, java.io.File path)Assert that the File exist.static voidassertFileExists(java.lang.String msg, java.nio.file.Path path)Assert that the File exist.static voidassertNotPathExists(java.lang.String msg, java.io.File path)Assert that the path does not exist.static voidassertNotPathExists(java.lang.String msg, java.nio.file.Path path)Assert that the path does not exist.static voidassertPathExists(java.lang.String msg, java.io.File path)Assert that the path exist.static voidassertPathExists(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
-
-