Package de.skuzzle.test.snapshots
Interface SnapshotDirectoryStrategy
-
@API(status=EXPERIMENTAL, since="1.7.0") public interface SnapshotDirectoryStrategyStrategy interface which can be used to determine a custom snapshot directory. Use withSnapshotDirectory.determinedBy().- Since:
- 1.7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.PathdetermineSnapshotDirectory(java.lang.Class<?> testClass, SnapshotDirectory directory)Determine the directory into which snapshots will be persisted.
-
-
-
Method Detail
-
determineSnapshotDirectory
java.nio.file.Path determineSnapshotDirectory(java.lang.Class<?> testClass, SnapshotDirectory directory) throws SnapshotExceptionDetermine the directory into which snapshots will be persisted.Note that, when returning a path outside src/test/resources, snapshots stored there are currently not subjected to static orphan detection (see
DeleteOrphanedSnapshotsfor details).- Parameters:
testClass- The test class for which snapshot tests are enabled.directory- TheSnapshotDirectoryannotation instance.- Returns:
- The path at which snapshot files will be persisted.
- Throws:
SnapshotException- Can be thrown by implementors in case determining the directory is not possible.
-
-