Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this case #2 tells the real issue: a final method being stubbed.

The only usual solution is to remove the final, so code quality is less because we use a very technical tool.

Mockito 2 allows stubbing finals as described here.


See this stackoverflow answer for more details.

...