blob: b12ccaa221dbdeddf10e364cecb7527d91b8344c [file] [log] [blame]
/**
* Tests Closures in Groovy
*
* @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
* @version $Revision$
*/
class ClosureAsParamTest extends GroovyTestCase {
void testSimpleBlockCall() {
assertClosure({owner| println(owner) })
}
assertClosure(Closure block) {
assert block != null
block.call("hello!")
}
}