Class PathAssert

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

public final class PathAssert extends Object
Assertions of various FileSytem Paths
  • Constructor Details

    • PathAssert

      private PathAssert()
  • Method Details

    • assertDirExists

      public static void assertDirExists(String msg, 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(String msg, 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(String msg, 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(String msg, 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(String msg, 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(String msg, 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(String msg, 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(String msg, 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