spock.lang
Annotation Type Shared


@Retention(value=RUNTIME)
@Target(value=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.

Author:
Peter Niederwieser



Copyright © 2009. All Rights Reserved.