-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7721bb
commit 04fe91a
Showing
4 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...org/approvaltests/ApprovalsDuplicateVerifyExceptionTest.testExceptionMessage.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
org.approvaltests.ApprovalsDuplicateVerifyException: Already approved: file.txt | ||
By default, ApprovalTests only allows one verify() call per test. | ||
To find out more, visit: | ||
To find out more, visit: | ||
https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/reference/Naming.md | ||
|
||
# Fixes | ||
1. separate your test into two tests | ||
2. add NamedParameters with the NamerFactory | ||
3. Override Approvals.settings() with either | ||
a. allowMultipleVerifyCallsForThisClass | ||
b. allowMultipleVerifyCallsForThisMethod | ||
3. Override Approvals.settings() with either | ||
a. allowMultipleVerifyCallsForThisClass | ||
b. allowMultipleVerifyCallsForThisMethod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters