You're using Mockito and Groovy. Maybe you've noticed that, when you try to mock a Groovy class from a Groovy test, it fails horribly. Now it won't!
Specifically, this library provides a workaround for Mockito Issue 303: http://code.google.com/p/mockito/issues/detail?id=303
- Include mockito-groovy-support on your classpath.
- Use Mockito from Groovy as you normally would.
- Everything should just work. If it doesn't, let us know.
Download the jar. The new version will be up on Maven when I figure out how.
Moss Collum and Laura Dean of Cyrus Innovation wrote the original version. Jostein Gogstad contributed the code to support verification and argument matchers.
Email us at: mockito-groovy-developers@cyruslists.com
- 1.2: Work seamlessly with Mockito using MockMaker extension point.
- 1.1: Support verification and argument matchers.
- 1.0.1: Made project available through Maven.
- 1.0: Support basic stubbing of Groovy classes.