Class PathAssert


  • public final class PathAssert
    extends java.lang.Object
    Assertions of various FileSytem Paths
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PathAssert()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertDirExists​(java.lang.String msg, java.io.File path)
      Assert that the Directory exist.
      static void assertDirExists​(java.lang.String msg, java.nio.file.Path path)
      Assert that the Directory path exist.
      static void assertFileExists​(java.lang.String msg, java.io.File path)
      Assert that the File exist.
      static void assertFileExists​(java.lang.String msg, java.nio.file.Path path)
      Assert that the File exist.
      static void assertNotPathExists​(java.lang.String msg, java.io.File path)
      Assert that the path does not exist.
      static void assertNotPathExists​(java.lang.String msg, java.nio.file.Path path)
      Assert that the path does not exist.
      static void assertPathExists​(java.lang.String msg, java.io.File path)
      Assert that the path exist.
      static void assertPathExists​(java.lang.String msg, java.nio.file.Path path)
      Assert that the path exist.
      • Methods inherited from class java.lang.Object

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

      • PathAssert

        private PathAssert()
    • 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