The Groovy programming language comes with great support for writing tests. In addition
to the language features and test integration with state-of-the-art testing libraries and
The Groovy ecosystem has born a rich set of testing libraries and frameworks.
Groovy Provides following testing capabilities
Spock for specifications
Geb for Functional Test
Groovy also has excellent built-in support for a range of mocking and stubbing alternatives.
When using Java, dynamic mocking frameworks are very popular.
A key reason for this is that it is hard work creating custom hand-crafted mocks using Java.
Such frameworks can be used easily with Groovy