package groovy /** * @author James Strachan * @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" } }