Skip to content

Commit

Permalink
Add mockito extension for mocking final methods.
Browse files Browse the repository at this point in the history
Today we were getting NullPointerExceptions when mocking the final
methods of a class. We learned that by default mockito does not support
mocking final methods. In ordre to enable it, mockito extension should
be added to the test resources.

References:

* https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2#mock-the-unmockable-opt-in-mocking-of-final-classesmethods
  • Loading branch information
morazow committed Mar 16, 2020
1 parent 0f83709 commit 72c5b06
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mock-maker-inline

0 comments on commit 72c5b06

Please sign in to comment.