blob: f480ec79a72a83127bff10dc24ace31e44150fed [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) })
}
def assertClosure(Closure block) {
assert block != null
block.call("hello!")
}
}