class GroovyShellTestCase
extends GroovyTestCase
Groovy test case, which recreates internal GroovyShell in each setUp()
| Modifiers | Name | Description |
|---|---|---|
protected GroovyShell |
shell |
Shell instance recreated for each test and exposed through @Delegate. |
| Fields inherited from class | Fields |
|---|---|
class GroovyTestCase |
TEST_SCRIPT_NAME_PREFIX, log |
| Constructor and description |
|---|
GroovyShellTestCase() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected GroovyShell |
createNewShell()Create new shell instance. |
|
protected void |
setUp()Creates a fresh shell before each test method runs. |
|
protected void |
tearDown()Releases the shell after each test method completes. |
|
protected Object |
withBinding(Map map, Closure closure)Executes closure with given binding |
|
protected Object |
withBinding(Map map, String script)Evaluates script with given binding |
| Methods inherited from class | Name |
|---|---|
class GroovyTestCase |
assertArrayEquals, assertContains, assertContains, assertEquals, assertEquals, assertEquals, assertInspect, assertLength, assertLength, assertLength, assertScript, assertToString, fixEOLs, getMethodName, getName, getTestClassName, notYetImplemented, notYetImplemented, shouldFail, shouldFail, shouldFail, shouldFail, shouldFailWithCause |
Shell instance recreated for each test and exposed through @Delegate.
Create new shell instance. Overwrite it to customize
Creates a fresh shell before each test method runs.
Releases the shell after each test method completes.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.