Class NextToTestPathProvider

java.lang.Object
org.approvej.verify.NextToTestPathProvider
All Implemented Interfaces:
PathProvider

@NullMarked public class NextToTestPathProvider extends Object implements PathProvider
A PathProvider that uses a stack trace to determine the paths of the approved and received files.
  • Method Details

    • directory

      public Path directory()
      Description copied from interface: PathProvider
      The path of the directory containing the approved and received files.
      Specified by:
      directory in interface PathProvider
      Returns:
      the Path to the directory
    • receivedPath

      public Path receivedPath()
      Description copied from interface: PathProvider
      The path of the file containing the latest received value that didn't match the previously approved.
      Specified by:
      receivedPath in interface PathProvider
      Returns:
      the Path to the received file
    • approvedPath

      public Path approvedPath()
      Description copied from interface: PathProvider
      The path of the file containing a previously approved value.
      Specified by:
      approvedPath in interface PathProvider
      Returns:
      the Path to the approved file