Name | Description | Type | Package | Framework |
AsyncConditions | Alternative to class BlockingVariable(s) that allows to evaluate conditions in a thread other than the spec runner's thread(s). | Class | spock.util.concurrent | Spock |
|
AutoCleanup | Automatically cleans up the object stored in the annotated field or property at the end of its life time. | Class | spock.lang | Spock |
|
BlockingVariable | A statically typed variable whose get() method will block until some other thread has set a value with the set() method, or a timeout expires. | Class | spock.util.concurrent | Spock |
|
ConfigurationException | Thrown to indicate that there is a problem with Spock's configuration (file). | Class | spock.config | Spock |
|
ConfigurationObject | | Class | spock.config | Spock |
|
ConfineMetaClassChanges | Confines any changes made to the meta classes of the specified classes to the annotated scope. | Class | spock.util.mop | Spock |
|
DetachedMockFactory | This factory allows the creations of mocks outside of a Specification, e. | Class | spock.mock | Spock |
|
Exceptions | | Class | spock.util | Spock |
|
FailsWith | Indicates that a feature method is expected to fail with the given exception. | Class | spock.lang | Spock |
|
HamcrestSupport | | Class | spock.util.matcher | Spock |
|
Ignore | Indicates that a specification or feature method should not be run. | Class | spock.lang | Spock |
|
IgnoreIf | Ignores the annotated spec or feature if the given condition holds. | Class | spock.lang | Spock |
|
IgnoreRest | | Class | spock.lang | Spock |
|
IncludeExcludeCriteria | Configuration indicating which specs and methods should be included/excluded from a spec run. | Class | spock.config | Spock |
|
Issue | Indicates that a feature method or specification relates to one or more issues in an external issue tracking system. | Class | spock.lang | Spock |
|
Jvm | Provides information on the current JVM, such as its Java version. | Class | spock.util.environment | Spock |
|
MockFactory | Base interface for Java based mocks see MockingApi or DetachedMockFactory for more examples. | Interface | spock.mock | Spock |
|
MockingApi | Spock's mocking API primarily consists of the following factory methods: Mock()Creates a general-purpose test double that supports both stubbing and mocking. | Class | spock.mock | Spock |
|
Narrative | | Class | spock.lang | Spock |
|
OperatingSystem | Provides information on the current operating system, such as its name, version, and family. | Class | spock.util.environment | Spock |
|
PendingFeature | Indicates that the feature is not fully implemented yet and should not be reported as error. | Class | spock.lang | Spock |
|
PollingConditions | Repeatedly evaluates one or more conditions until they are satisfied or a timeout has elapsed. | Class | spock.util.concurrent | Spock |
|
Requires | Ignores the annotated spec or feature unless the given condition holds. | Class | spock.lang | Spock |
|
RestoreSystemProperties | Saves system properties before the annotated feature method (including any setup and cleanup methods) gets run, and restores them afterwards. | Class | spock.util.environment | Spock |
|
RunnerConfiguration | Configuration settings for the spec runner. | Class | spock.config | Spock |
|
See | One or more references to external information related to a specification or feature. | Class | spock.lang | Spock |
|
Shared | | Class | spock.lang | Spock |
|
Specification | Base class for Spock specifications. | Class | spock.lang | Spock |
|
Stepwise | Indicates that a spec's feature methods should be run sequentially in their declared order (even in the presence of a parallel spec runner), | Class | spock.lang | Spock |
|
Subject | Indicates which objects/classes are the subjects of a specification. | Class | spock.lang | Spock |
|
Timeout | Indicates that the execution of a method should time out after the given duration has elapsed. | Class | spock.lang | Spock |
|
Title | | Class | spock.lang | Spock |
|
UnitilsSupport | | Class | spock.unitils | Spock |
|
Unroll | Indicates that iterations of a data-driven feature should be made visible as separate features to the outside world (IDEs, reports, etc. | Class | spock.lang | Spock |
|
Use | Activates one or more Groovy categories while the annotated spec method or class executes. | Class | spock.util.mop | Spock |
|
UseModules | Activates Guice integration for a specification. | Class | spock.guice | Spock |