Class PathProviders

java.lang.Object
org.approvej.approve.PathProviders

public final class PathProviders extends Object
Collection of static methods to create PathProvider instances.
  • Method Details

    • approvedPath

      public static PathProvider approvedPath(Path approvedPath)
      Creates a new PathProvider that uses the given approved Path.
      Parameters:
      approvedPath - the Path to the approved file
      Returns:
      a new PathProvider
    • approvedPath

      public static PathProvider approvedPath(String approvedPathString)
      Creates a new PathProvider that uses the given approved path}.
      Parameters:
      approvedPathString - the path to the approved file
      Returns:
      a new PathProvider
    • nextToTest

      public static PathProvider nextToTest()
      Creates a PathProvider that uses a stack trace to determine the paths of the approved and received files.
      Returns:
      a new PathProvider
    • nextToTestInSubdirectory

      public static PathProvider nextToTestInSubdirectory()
      Creates a PathProvider that uses a stack trace to determine the paths of the approved and received files in a subdirectory named after the currect test class simple name.
      Returns:
      a new PathProvider