With the support of Groovy 1.6 we provide a @WithGMock annotation that
you can use when you can't (or don't want) extends the
GMockController. Like in the following extract:
@WithGMock
class YourTest extends GroovyTestCase {
// ... write your test here as normal
}
I'd like to thanks Johnny Jianhy for his hard work trying to solve the
incompatibility issue with Groovy 1.6.0 to the point of submitting
patches to the main Groovy source code that are now in 1.6.1.
The GMock devs