All Classes Interface Summary Class Summary Enum Summary Exception Summary Annotation Types Summary
Alternative to class
BlockingVariable(s) that allows to evaluate conditions
in a thread other than the spec runner's thread(s).
Automatically cleans up the object stored in the annotated field or property
at the end of its life time.
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.
Thrown to indicate that there is a problem with Spock's configuration (file).
Confines any changes made to the meta classes of the specified classes to the
This factory allows the creations of mocks outside of a
e.g., in a Spring configuration.
Allows to set the execution mode.
Indicates that a feature method is expected to fail with the given exception.
FileSystemFixture can be used to create temporary directories and files.
Indicates that a specification or feature method should not be run.
Ignores the annotated spec, feature or selected iterations if the given condition holds.
Indicates that all feature methods except the ones carrying this annotation
should be ignored.
Configuration indicating which specs and methods should be
included/excluded from a spec run.
Allows the isolated execution of a Specification.
Indicates that a feature method or specification relates to one or more
issues in an external issue tracking system.
Provides information on the current JVM, such as its Java version.
Spock's mocking API primarily consists of the following factory methods:
Creates a general-purpose test double that supports both stubbing and mocking.
Creates a test double that supports stubbing but not mocking.
Creates a test double that, by default, delegates all calls to a real object.
A mutable implementation of
for testing purposes.
Allows to attach a natural-language description to a spec.
Provides information on the current operating system, such as its name, version, and family.
An operating system family.
Indicates that the feature is not fully implemented yet and should not be reported as error.
Marks the annotated feature or selected iterations as
given condition holds.
Repeatedly evaluates one or more conditions until they are satisfied or a timeout has elapsed.
Repeats a feature until it fails or the maximum number of repetitions is reached.
Ignores the annotated spec, feature or selected iterations unless the given condition holds.
Allows to control access to a shared resource.
Saves system properties before the annotated feature method (including any setup and cleanup methods) gets run,
and restores them afterwards.
Retries the given feature if an exception occurs during execution.
Indicates that iterations of a data-driven feature should not be made visible
as separate features to the outside world (IDEs, reports, etc.) but as one atomic test.
Configuration settings for the spec runner.
One or more references to external information related to a specification or feature.
Indicates that a field is shared among all feature methods in a
Base class for Spock specifications.
When applied to a spec, the annotation indicates that the spec's feature methods should be run sequentially
in their declared order (even in the presence of a parallel spec runner), always starting from the first method.
Indicates which objects/classes are the subjects of a specification.
Generate a temp directory for test, and delete it after test.
Indicates that the execution of a method should time out
after the given duration has elapsed.
Allows to attach a natural-language name to a spec.
support for a specification.
Indicates that iterations of a data-driven feature should be made visible
as separate features to the outside world (IDEs, reports, etc.).
Activates one or more Groovy categories while the annotated spec method
or class executes.
integration for a specification.