Package spock.lang
Annotation Type Shared
-
@Retention(RUNTIME) @Target(FIELD) public @interface Shared
Indicates that a field is shared among all feature methods in a specification. Initializing a shared field at the point of declaration is encouraged; semantically, this is equivalent to initializing the field at the very beginning of the setupSpec() method.