SharedRuntime (Grails 3.1.1)
Date: 2016-02-04

Package: grails.test.runtime

## [Groovy] Annotation Type SharedRuntime

- grails.test.runtime.SharedRuntime

- Annotation to be used in Junit tests and Spock specifications. This annotation is for marking test classes and/or packages that should share the same runtime.

  Authors:
    Lari Hotari
  Since:
    2.4.0

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.lang.Class<? extends SharedRuntimeConfigurer>` | `value()` All tests annotated with this annotation and same value() will use the same shared TestRuntime instance.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Method Detail

    - #### java.lang.Class<? extends SharedRuntimeConfigurer> value()

      All tests annotated with this annotation and same value() will use the same shared TestRuntime instance. The SharedRuntimeConfigurer class can also implement TestEventInterceptor. In that case the instance will be registered as an event interceptor.

      Returns:
        @default DefaultSharedRuntimeConfigurer