Java Reference
In-Depth Information
put. As a result, most Groovy developers use assert in their tests rather than any of the
assert methods from the org.junit.Assert class.
3 Non-null references are true, non-zero numbers are true, non-empty collections are true, non-empty strings are
true, and so on.
Finally, let me show a test class that extends GroovyTestCase and see what extra cap-
abilities that brings.
6.1.3. A GroovyTestCase test for a Java implementation
Groovy provides the class groovy.util.GroovyTestCase as part of its standard
library. As mentioned earlier, it extends org.junit.TestCase . The following listing
shows one such test for the Java implementation.
 
Search WWH ::




Custom Search