📄 compilabletestsupport.groovy
字号:
package gls.scopeimport org.codehaus.groovy.control.CompilationFailedException;import groovy.util.GroovyTestCase;public class CompilableTestSupport extends GroovyTestCase { protected void shouldNotCompile(String script) { try { GroovyShell shell = new GroovyShell() shell.parse(script, getTestClassName()) } catch (CompilationFailedException cfe) { assert true return } fail("the compilation succeeded but should have failed") }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -