Java Reference
In-Depth Information
In the next subsection I'll use Java to test the Groovy implementation and fix the bug. Then
I'll use Groovy to test the Java implementation, and finally I'll write the test as a subclass
of GroovyTestCase to see how that can help.
6.1.1. A Java test for the Groovy implementation
The following listing contains a JUnit 4 test, written in Java, to test the Groovy implement-
ation. It includes a static import for the methods in the org.junit.Assert class and
@Test annotations for the individual tests.
Listing 6.4. A Java JUnit test to check the Groovy implementation
Search WWH ::




Custom Search