This post originated from an RSS feed registered with Java Buzz
by Jason Sankey.
Original Post: Easier Stubbing With Mockito
Feed Title: a little madness
Feed URL: http://www.alittlemadness.com/feed/
Feed Description: A man needs a little madness, or else he never dares cut the rope and be free. -Nikos Kazantzakis
Ever need to stub just a method or two of some interface to nicely isolate a unit to test? In the past I have used classic mock object libraries to help, but these suffered from a few problems:
The use of strings to specify method names to stub, which breaks refactoring.
Awkward syntax to specify parameter [...]