How to tell a Mockito mock object to return something different the next time it is called?
So, I’m creating a mock object as a static variable on the class level like so… In one test, I want Foo.someMethod() to return a certain value, while in another test, I want it to return a different value. The problem I’m having is that it seems I need to rebuild the mocks to get … Read more