-
Notifications
You must be signed in to change notification settings - Fork 74
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
16fecf8
commit 86d64cf
Showing
3 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
...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: | ||
https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/reference/Naming.md | ||
org.approvaltests.ApprovalsDuplicateVerifyException: By default, ApprovalTests only allows one verify() call per test. | ||
This file has already been approved: file.txt | ||
|
||
# Fixes | ||
1. separate your test into two tests | ||
2. add NamedParameters with the NamerFactory | ||
3. Override Approvals.settings() with either | ||
a. allowMultipleVerifyCallsForThisClass | ||
b. allowMultipleVerifyCallsForThisMethod | ||
You can do one of the following: | ||
|
||
* Separate your test into two tests | ||
* Allow multiple verify calls inside one test class or method via: | ||
- Approvals.settings().allowMultipleVerifyCallsForThisClass(); | ||
- Approvals.settings().allowMultipleVerifyCallsForThisMethod(); | ||
* Add NamedParameters with the NamerFactory | ||
- visit https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/reference/Naming.md |
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