Package org.eclipse.jetty.toolchain.test
Class PathAssert
java.lang.Object
org.eclipse.jetty.toolchain.test.PathAssert
Deprecated, for removal: This API element is subject to removal in a future version.
Assertions of various FileSytem Paths
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertDirExists(String msg, File path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), PathMatchers.isDirectory());insteadstatic voidassertDirExists(String msg, Path path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, PathMatchers.isDirectory());insteadstatic voidassertFileExists(String msg, File path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), PathMatchers.isRegularFile());insteadstatic voidassertFileExists(String msg, Path path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, PathMatchers.isRegularFile());insteadstatic voidassertNotPathExists(String msg, File path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), not(PathMatchers.exists()));insteadstatic voidassertNotPathExists(String msg, Path path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, not(PathMatchers.exists()));insteadstatic voidassertPathExists(String msg, File path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), PathMatchers.exists());insteadstatic voidassertPathExists(String msg, Path path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, PathMatchers.exists());instead
-
Constructor Details
-
PathAssert
private PathAssert()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
assertDirExists
Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), PathMatchers.isDirectory());insteadAssert 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
Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, PathMatchers.isDirectory());insteadAssert 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
@Deprecated(forRemoval=true, since="6.0") public static void assertFileExists(String msg, File path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), PathMatchers.isRegularFile());insteadAssert 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
@Deprecated(forRemoval=true, since="6.0") public static void assertFileExists(String msg, Path path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, PathMatchers.isRegularFile());insteadAssert 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
@Deprecated(forRemoval=true, since="6.0") public static void assertPathExists(String msg, File path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), PathMatchers.exists());insteadAssert that the path exist.- Parameters:
msg- message about the test (used in case of assertion failure)path- the path that should exist
-
assertPathExists
@Deprecated(forRemoval=true, since="6.0") public static void assertPathExists(String msg, Path path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, PathMatchers.exists());insteadAssert that the path exist.- Parameters:
msg- message about the test (used in case of assertion failure)path- the path that should exist
-
assertNotPathExists
@Deprecated(forRemoval=true, since="6.0") public static void assertNotPathExists(String msg, File path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path.toPath(), not(PathMatchers.exists()));insteadAssert 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
@Deprecated(forRemoval=true, since="6.0") public static void assertNotPathExists(String msg, Path path) Deprecated, for removal: This API element is subject to removal in a future version.useassertThat(msg, path, not(PathMatchers.exists()));insteadAssert 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
-
PathMatcherswithassertThat()