Class PathMatchers

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

public class PathMatchers extends Object
  • Constructor Details

    • PathMatchers

      public PathMatchers()
  • Method Details

    • exists

      public static org.hamcrest.Matcher<Path> exists()
      Test for Path that uses Files.exists(Path, LinkOption...) with clear description of Path if it fails
      Returns:
      the Exists matcher
    • isRegularFile

      public static org.hamcrest.Matcher<Path> isRegularFile()
      Test for Path that uses Files.isRegularFile(Path, LinkOption...) with clear description of Path if it fails
      Returns:
      the isRegularFile matcher
    • isDirectory

      public static org.hamcrest.Matcher<Path> isDirectory()
      Test for Path that uses Files.isDirectory(Path, LinkOption...) with clear description of Path if it fails
      Returns:
      the isDirectory matcher
    • isEmptyDirectory

      public static org.hamcrest.Matcher<Path> isEmptyDirectory()
      Test that Path exists, as a Directory, and is empty with clear description of Path if it fails
      Returns:
      the isEmptyDirectory matcher
    • isSame

      public static org.hamcrest.Matcher<Path> isSame(Path expected)
      Test for Path that uses Files.isDirectory(Path, LinkOption...) with clear description of Path if it fails
      Returns:
      the isDirectory matcher