Class PathAssert

java.lang.Object
org.eclipse.jetty.toolchain.test.PathAssert

@Deprecated(forRemoval=true, since="6.0") public final class PathAssert extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
use PathMatchers with assertThat()
Assertions of various FileSytem Paths
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path.toPath(), PathMatchers.isDirectory()); instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path, PathMatchers.isDirectory()); instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path.toPath(), PathMatchers.isRegularFile()); instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path, PathMatchers.isRegularFile()); instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path.toPath(), not(PathMatchers.exists())); instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path, not(PathMatchers.exists())); instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path.toPath(), PathMatchers.exists()); instead
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    use assertThat(msg, path, PathMatchers.exists()); instead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PathAssert

      private PathAssert()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • assertDirExists

      @Deprecated(forRemoval=true, since="6.0") public static void assertDirExists(String msg, File path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use assertThat(msg, path.toPath(), PathMatchers.isDirectory()); instead
      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

      @Deprecated(forRemoval=true, since="6.0") public static void assertDirExists(String msg, Path path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use assertThat(msg, path, PathMatchers.isDirectory()); instead
      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

      @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.
      use assertThat(msg, path.toPath(), PathMatchers.isRegularFile()); instead
      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

      @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.
      use assertThat(msg, path, PathMatchers.isRegularFile()); instead
      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

      @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.
      use assertThat(msg, path.toPath(), PathMatchers.exists()); instead
      Assert 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.
      use assertThat(msg, path, PathMatchers.exists()); instead
      Assert 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.
      use assertThat(msg, path.toPath(), not(PathMatchers.exists())); instead
      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

      @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.
      use assertThat(msg, path, not(PathMatchers.exists())); instead
      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