Testing - pford68/groovy-examples GitHub Wiki
Use JUnit
Groovy classes work just fine as JUnit test classes.
- There is nothing extra to do to make it work.
- Simply create a Groovy test class and use JUnit, but writing Groovy in the class.
- As usual, annotate test methods with
@Test.- Annotate setup and teardown methods as usual.