Mocking in Groovy

In unit tests, sometimes you just need to do some simple work with a mock.  Something like setting an identifier on an argument that is passed in to the mock. Imagine a service interface where this is one of the methods: Now imagine that on that same interface there are many other methods that you … Read more