GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — Fixes #2201 : Fixed checking of declared exceptions. by andrey-kozel · Pull Request #2547 · mockito/mockito Conversation
Contributor
Fixed checking of declared exceptions. In case when parent contains throws keyword on its method and child overrides this method removing throws, it should be possible to mock throwing exception from child Description.Lets assume that we have the following interface And we have class that extends the interface, removing When we trying to mock exception throw, it wasn't possible Now this behavior fixed Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…hen parent contains throws keyword on its method and child overrides this method removing throws, it should be possible to mock throwing exception from child
ruslanzianevich
approved these changes
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## main #2547 +/- ## ============================================ - Coverage 86.69% 86.54% -0.16% - Complexity 2782 2790 +8 ============================================ Files 320 320 Lines 8344 8359 +15 Branches 1022 1023 +1 ============================================ Hits 7234 7234 - Misses 840 857 +17 + Partials 270 268 -2
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
WOW Amazing!! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I think we are nearly there, but there are some more edge cases we need to handle.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
0e0e577 to
77f7dbd
Compare
Thank you for the comment. I've extended checking for exceptions and added tests for all the cases you've mentioned |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
77f7dbd to
66146e6
Compare
66146e6 to
792da83
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice work and regression tests, thanks! 🎉
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.