blob: 2cf8debd504ad2f9498c95f28d817e716bc84173 [file] [log] [blame]
package groovy
/**
* @author <a href="mailto:jstrachan@protique.com">James Strachan</a>
* @version $Revision$
*/
class ClosureWithEmptyParametersTest extends GroovyTestCase {
void testNoParams() {
def block = {-> println "hey I'm a closure!" }
println "About to call closure"
block.call()
println "Done"
}
}