Package: groovy.util

## [Groovy] Class GroovyShellTestCase

- groovy.util.GroovyShellTestCase

- Groovy test case, which recreates internal GroovyShell in each setUp()

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected GroovyShell` | `shell` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `GroovyShellTestCase ()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected GroovyShell` | `createNewShell()` Create new shell instance.
    `` | `protected void` | `setUp()`
    `` | `protected void` | `tearDown()`
    `` | `protected Object` | `withBinding(Map map, Closure closure)` Executes closure with given binding
    `` | `protected Object` | `withBinding(Map map, String script)` Evaluates script with given binding

- - ### Field Detail

    - #### @DelegateDelegate protected GroovyShell shell

  - ### Constructor Detail

    - #### GroovyShellTestCase()

  - ### Method Detail

    - #### protected GroovyShell createNewShell()

      Create new shell instance. Overwrite it to customize

    - #### protected void setUp()

    - #### protected void tearDown()

    - #### protected Object withBinding(Map map, Closure closure)

      Executes closure with given binding

    - #### protected Object withBinding(Map map, String script)

      Evaluates script with given binding