Problem
We'd like to have "idiomatic" Mockito stubbing available as a library for tests to use. We'd also like to update the current Mockito dependency where possible to a later version.
Solution
Add util/util-mock which defines c.t.mock.Mockito
for idiomatic stubbing
with mockito. Update all Mockito dependencies except for util/util-test
which defines a mocking adaptation for argument capture with Mockito.
Result
A new mockito-scala based idiomatic mocking library which others can use. Almost all code updated to a more recent version of Mockito.
Differential Revision: https://phabricator.twitter.biz/D530995