Skip to content

Commit 09a5db7

Browse files
#patch: Made SnapshotFile constructor public to allow for defining the name of the snapshot file (#180)
1 parent 2e2087b commit 09a5db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/SnapshotFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class SnapshotFile {
3232
@Getter private Set<Snapshot> snapshots = Collections.synchronizedSortedSet(new TreeSet<>());
3333
private Set<Snapshot> debugSnapshots = Collections.synchronizedSortedSet(new TreeSet<>());
3434

35-
SnapshotFile(String srcDirPath, String fileName, Class<?> testClass) throws IOException {
35+
public SnapshotFile(String srcDirPath, String fileName, Class<?> testClass) throws IOException {
3636
this.testClass = testClass;
3737
this.fileName = srcDirPath + File.separator + fileName;
3838
log.info("Snapshot File: " + this.fileName);

0 commit comments

Comments
 (0)