Class PathUtilsForTesting


  • public class PathUtilsForTesting
    extends java.lang.Object
    Exposes some package private stuff in PathUtils for framework purposes only!
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void installMock​(java.nio.file.FileSystem mock)
      Installs a mock filesystem for testing
      static void setup()
      Sets a new default filesystem for testing
      static void teardown()
      Resets filesystem back to the real system default
      • Methods inherited from class java.lang.Object

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

      • PathUtilsForTesting

        public PathUtilsForTesting()
    • Method Detail

      • setup

        public static void setup()
        Sets a new default filesystem for testing
      • installMock

        public static void installMock​(java.nio.file.FileSystem mock)
        Installs a mock filesystem for testing
      • teardown

        public static void teardown()
        Resets filesystem back to the real system default