public class ApprovalFolders extends ApprovalFiles
ApprovalFolders is similar to ApprovalFiles : it holds a pair of Paths, approved and received.
The difference is that these paths represents folders we are comparing.
approved, received| Constructor and Description |
|---|
ApprovalFolders(Path folder,
String methodName)
Constructs a pair of approval entries from the provided folder and method name.
|
| Modifier and Type | Method and Description |
|---|---|
MatchesAndMismatches |
matchesAndMismatches()
Compares the content of files in approved and received folders (only makes sense if approved and received are folders).
|
void |
prepareFolders(Path actualFolder)
Creates the approved folder and copies files from actual to received folder.
|
ApprovalFiles |
resolve(Path file)
Appends to the approved and received paths the name of a file.
|
approvedContent, createEmptyApprovedFileIfNeeded, equals, hashCode, haveSameContent, parent, receivedContentpublic ApprovalFolders(Path folder, String methodName)
Constructs a pair of approval entries from the provided folder and method name. The path for both approved and received files will be computed and used as approval files.
folder - The folder in which the approval files will be locatedmethodName - The name of the method calling the test. It is used to actually name the approval filespublic ApprovalFiles resolve(Path file)
Appends to the approved and received paths the name of a file.
file - the Path for which only the name is taken into accountpublic void prepareFolders(Path actualFolder)
Creates the approved folder and copies files from actual to received folder.
public MatchesAndMismatches matchesAndMismatches()
Compares the content of files in approved and received folders (only makes sense if approved and received are folders).
Copyright © 2018–2019 Write Them First!. All rights reserved.