@断言可以包含一个跟踪信息
如:
input = new File('No such file')
assert input.exists() , "cannot find '$input.name'"
assert input.exists() , "cannot find '$input.name'"
assert input.canRead() , "cannot read '$input.canonicalPath'"
println input.txt
@在groovy中断言总是被执行