Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
E
F
G
H
I
M
N
O
R
S
T
U
_
A
annotations
- Variable in class spock.config.
IncludeExcludeCriteria
AsyncConditions
- Class in
spock.util.concurrent
Alternative to class
BlockingVariable(s)
that allows to evaluate conditions in a thread other than the spec runner's thread(s).
AsyncConditions()
- Constructor for class spock.util.concurrent.
AsyncConditions
Same as
AsyncConditions(1)
.
AsyncConditions(int)
- Constructor for class spock.util.concurrent.
AsyncConditions
Instantiates an
AsyncConditions
instance with the specified number of evaluate blocks.
AutoCleanup
- Annotation Type in
spock.lang
Automatically cleans up the object stored in the annotated field or property at the end of its life time.
await()
- Method in class spock.util.concurrent.
AsyncConditions
Same as
await(1, TimeUnit.SECONDS)
.
await(int, TimeUnit)
- Method in class spock.util.concurrent.
AsyncConditions
Waits until all evaluate blocks have completed or the specified timeout expires.
B
baseClasses
- Variable in class spock.config.
IncludeExcludeCriteria
BlockingVariable
<
T
> - Class in
spock.util.concurrent
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.
BlockingVariable()
- Constructor for class spock.util.concurrent.
BlockingVariable
Same as
BlockingVariable(1, TimeUnit.SECONDS)
.
BlockingVariable(int)
- Constructor for class spock.util.concurrent.
BlockingVariable
Instantiates a
BlockingVariable
with the specified timeout in seconds.
BlockingVariable(int, TimeUnit)
- Constructor for class spock.util.concurrent.
BlockingVariable
Instantiates a
BlockingVariable
with the specified timeout.
C
ConfigurationException
- Exception in
spock.config
Thrown to indicate that there is a problem with Spock's configuration (file).
ConfigurationException(String, Object...)
- Constructor for exception spock.config.
ConfigurationException
ConfigurationException(String, Throwable, Object...)
- Constructor for exception spock.config.
ConfigurationException
ConfineMetaClassChanges
- Annotation Type in
spock.util.mop
Confines any changes made to the meta classes of the specified classes to the annotated scope.
E
evaluate(Runnable)
- Method in class spock.util.concurrent.
AsyncConditions
Evaluates the specified block, which is expected to contain one or more explicit conditions (i.e.
exclude
- Variable in class spock.config.
RunnerConfiguration
F
FailsWith
- Annotation Type in
spock.lang
Indicates that a feature method is expected to fail with the given exception.
filterStackTrace
- Variable in class spock.config.
RunnerConfiguration
G
get()
- Method in class spock.util.concurrent.
BlockingVariable
Blocks until a value has been set for this variable, or a timeout expires.
H
HamcrestSupport
- Class in
spock.util.matcher
HamcrestSupport()
- Constructor for class spock.util.matcher.
HamcrestSupport
I
Ignore
- Annotation Type in
spock.lang
Indicates that a specification or feature method should not be run.
IgnoreIf
- Annotation Type in
spock.lang
Ignores the annotated spec/feature if the given condition holds.
IgnoreRest
- Annotation Type in
spock.lang
Indicates that all feature methods except the ones carrying this annotation should be ignored.
include
- Variable in class spock.config.
RunnerConfiguration
IncludeExcludeCriteria
- Class in
spock.config
Configuration indicating which specs and methods should be included/excluded from a spec run.
IncludeExcludeCriteria(Class<?>...)
- Constructor for class spock.config.
IncludeExcludeCriteria
interaction(Closure)
- Method in class spock.lang.
Specification
Encloses one or more interaction definitions in a
then
block.
isEmpty()
- Method in class spock.config.
IncludeExcludeCriteria
Issue
- Annotation Type in
spock.lang
Indicates that a feature method or specification relates to one or more issues in an external issue tracking system.
M
Mock()
- Method in class spock.lang.
Specification
Creates a mock object whose name and type are inferred from the variable that the mock object is assigned to.
Mock(Class<T>)
- Method in class spock.lang.
Specification
Creates a mock object of the given type.
N
noExceptionThrown()
- Method in class spock.lang.
Specification
Specifies that no exception should be thrown.
notThrown(Class<? extends Throwable>)
- Method in class spock.lang.
Specification
Specifies that in particular, no exception of the given type should be thrown.
O
old(T)
- Method in class spock.lang.
Specification
Used in a then-block to access an expression's value at the time just before the previous where-block was entered.
optimizeRunOrder
- Variable in class spock.config.
RunnerConfiguration
R
RunnerConfiguration
- Class in
spock.config
Configuration settings for the spec runner.
RunnerConfiguration()
- Constructor for class spock.config.
RunnerConfiguration
S
See
- Annotation Type in
spock.lang
One or more references to external information related to a specification or feature.
set(T)
- Method in class spock.util.concurrent.
BlockingVariable
Sets a value for this variable.
Shared
- Annotation Type in
spock.lang
Indicates that a field is shared among all feature methods in a specification.
Specification
- Class in
spock.lang
Base class for Spock specifications.
Specification()
- Constructor for class spock.lang.
Specification
spock.config
- package spock.config
Classes modeling Spock's configuration options.
spock.lang
- package spock.lang
The core specification language.
spock.util.concurrent
- package spock.util.concurrent
Utilities for testing concurrent code.
spock.util.matcher
- package spock.util.matcher
Utilities for using (
Hamcrest
) matchers.
spock.util.mop
- package spock.util.mop
Utilities related to Groovy meta programming.
Stepwise
- Annotation Type in
spock.lang
Indicates that a 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.
Subject
- Annotation Type in
spock.lang
Indicates which objects/classes are the subjects of a specification.
T
that(T, Matcher<? super T>)
- Static method in class spock.util.matcher.
HamcrestSupport
Used to match a value against a (Hamcrest) matcher.
thrown()
- Method in class spock.lang.
Specification
Specifies that the preceding
when
block should throw an exception.
thrown(Class<T>)
- Method in class spock.lang.
Specification
Specifies that the preceding
when
block should throw an exception of the given type.
Timeout
- Annotation Type in
spock.lang
Indicates that the execution of a method should time out after the given duration has elapsed.
U
Unroll
- Annotation Type in
spock.lang
Indicates that iterations of a data-driven feature should be made visible as separate features to the outside world (IDEs, reports, etc.).
Use
- Annotation Type in
spock.util.mop
Activates one or more Groovy categories while the annotated spec method or class executes.
_
_
- Static variable in class spock.lang.
Specification
The wildcard symbol.
A
B
C
E
F
G
H
I
M
N
O
R
S
T
U
_
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes