Class ContextFiles


  • @API(status=EXPERIMENTAL,
         since="1.8.0")
    public final class ContextFiles
    extends java.lang.Object
    Holds the paths to all files that might have been generated by a single snapshot assertion.

    Depending on the configuration (i.e. SnapshotTestOptions )

    Since:
    1.8.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path actualResultFile()
      Path to the file in which the latest actual result will be stored.
      void deleteFiles()
      Deletes all the context files that are existing.
      static ContextFiles of​(java.nio.file.Path snapshotFile, java.nio.file.Path actualResultFile, java.nio.file.Path rawActualResultFile)  
      java.nio.file.Path rawActualResultFile()
      Path to the file in which the latest raw actual result will be stored (without the snapshot header).
      java.nio.file.Path snapshotFile()
      The snapshot file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait