-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve assertion tests and errors (#242)
* Fix and improve tests for visibility assertions Some of them were a bit confussing because of mixing things. I separated them, give consistent names between them, and added assertions for error types and messages. Until know we didn't care about what errors we return from methods. That's about to change, my boy! * Fixed AssertAny error handling It was too simplistic, producing wrong or inconsistent error messages and types. Now, we ALWAYS produce a BaristaException with an appropiate message This change fixes the tests broken in the previous commit, because they test more things. * Use AssertJ catchThrowable * Add SpyFailureHandlerRule to visibility assertion tests * Improve error messages in tests * Update exception types * Update exception types * Improved names of catched exception * Fix checktyle issues
- Loading branch information
Showing
8 changed files
with
180 additions
and
134 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.