$ A B C D E F G H I M N O P R S T U V W Z _ 

$

$spock_get() - Method in interface org.spockframework.mock.ISpockMockObject
 

A

accept(IMockInvocation) - Method in interface org.spockframework.mock.IMockInteraction
 
addInteraction(IMockInteraction) - Method in class org.spockframework.mock.DefaultEqualsHashCodeToStringInteractions
 
addInteraction(IMockInteraction) - Method in interface org.spockframework.mock.IInteractionScope
 
addOrderingBarrier() - Method in class org.spockframework.mock.DefaultEqualsHashCodeToStringInteractions
 
addOrderingBarrier() - Method in interface org.spockframework.mock.IInteractionScope
 
addUnmatchedInvocation(IMockInvocation) - Method in class org.spockframework.mock.DefaultEqualsHashCodeToStringInteractions
 
addUnmatchedInvocation(IMockInvocation) - Method in interface org.spockframework.mock.IInteractionScope
 
annotations - Variable in class spock.config.IncludeExcludeCriteria
 
asMock(Object) - Method in class org.spockframework.mock.MockDetector
Returns information about a mock object.
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).
await(double) - Method in class spock.util.concurrent.AsyncConditions
Waits until all evaluate blocks have completed or the specified timeout (in seconds) expires.
await(int, TimeUnit) - Method in class spock.util.concurrent.AsyncConditions
Deprecated.

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).
BlockingVariable(double) - 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

C

call(Closure<?>) - Method in class spock.util.concurrent.PollingConditions
call(double, Closure<?>) - Method in class spock.util.concurrent.PollingConditions
callRealMethod() - Method in interface org.spockframework.mock.IMockInvocation
Delegates this method invocation to the real object underlying this mock object, including any method arguments.
CallRealMethodResponse - Class in org.spockframework.mock
A response strategy that delegates method calls to the real object underlying the mock (if any).
callRealMethodWithArgs(Object...) - Method in interface org.spockframework.mock.IMockInvocation
Delegates this method invocation to the real object underlying this mock object, replacing the original method arguments with the specified arguments.
canCreate(IMockConfiguration) - Method in interface org.spockframework.mock.IMockFactory
 
CannotCreateMockException - Exception in org.spockframework.mock
Thrown to indicate a problem when creating a mock object.
CannotCreateMockException(Class<?>, String) - Constructor for exception org.spockframework.mock.CannotCreateMockException
 
CannotCreateMockException(Class<?>, Throwable) - Constructor for exception org.spockframework.mock.CannotCreateMockException
 
CannotCreateMockException(Class<?>, String, Throwable) - Constructor for exception org.spockframework.mock.CannotCreateMockException
 
CannotInvokeRealMethodException - Exception in org.spockframework.mock
Thrown to indicate that an attempt was made to delegate a method call to a real object underlying a mock, although no such underlying object exists.
CannotInvokeRealMethodException(String) - Constructor for exception org.spockframework.mock.CannotInvokeRealMethodException
 
computeSimilarityScore(IMockInvocation) - Method in interface org.spockframework.mock.IMockInteraction
 
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.
create(IMockConfiguration, Specification) - Method in interface org.spockframework.mock.IMockFactory
 

D

DefaultEqualsHashCodeToStringInteractions - Class in org.spockframework.mock
 

E

EmptyOrDummyResponse - Class in org.spockframework.mock
A response strategy that returns zero, an "empty" object, or a "dummy" object, depending on the method's declared return type.
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.
eventually(Closure<?>) - Method in class spock.util.concurrent.PollingConditions
Repeatedly evaluates the specified conditions until they are satisfied or the timeout has elapsed.
exclude - Variable in class spock.config.RunnerConfiguration
 
expect(T, Matcher<? super T>) - Static method in class spock.util.matcher.HamcrestSupport
Alias for HamcrestSupport.that(Object, org.hamcrest.Matcher) intended for use in then-blocks.

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.
getAcceptedInvocations() - Method in interface org.spockframework.mock.IMockInteraction
 
getAcceptedInvocations() - Method in error org.spockframework.mock.TooManyInvocationsError
 
getArguments() - Method in interface org.spockframework.mock.IMockInvocation
The arguments for the invocation.
getColumn() - Method in interface org.spockframework.mock.IMockInteraction
 
getConstructorArgs() - Method in interface org.spockframework.mock.IMockConfiguration
Returns the constructor arguments to be used for creating the mock object.
getDefaultResponse() - Method in interface org.spockframework.mock.IMockConfiguration
Returns the default response strategy for the mock object.
getDefaultResponse() - Method in interface org.spockframework.mock.IMockObject
Returns the default response strategy for this mock object.
getDefaultResponse() - Method in enum org.spockframework.mock.MockNature
Returns the strategy for responding to unexpected method calls.
getDelay() - Method in class spock.util.concurrent.PollingConditions
Returns the delay (in seconds) between successive evaluations of the conditions.
getFactor() - Method in class spock.util.concurrent.PollingConditions
Returns the factor by which the delay grows (or shrinks) after each evaluation of the conditions.
getImplementation() - Method in interface org.spockframework.mock.IMockConfiguration
Returns the implementation of the mock object.
getInitialDelay() - Method in class spock.util.concurrent.PollingConditions
Returns the initial delay (in seconds) before first evaluating the conditions.
getInstance() - Method in interface org.spockframework.mock.IMockObject
Returns the instance of this mock object.
getInteraction() - Method in error org.spockframework.mock.TooManyInvocationsError
 
getInteraction() - Method in error org.spockframework.mock.WrongInvocationOrderError
 
getLastInvocation() - Method in error org.spockframework.mock.WrongInvocationOrderError
 
getLine() - Method in interface org.spockframework.mock.IMockInteraction
 
getMessage() - Method in error org.spockframework.mock.TooFewInvocationsError
 
getMessage() - Method in error org.spockframework.mock.TooManyInvocationsError
 
getMessage() - Method in error org.spockframework.mock.WrongInvocationOrderError
 
getMethod() - Method in interface org.spockframework.mock.IMockInvocation
The invoked method.
getMockObject() - Method in interface org.spockframework.mock.IMockInvocation
The mock object that received the invocation.
getName() - Method in interface org.spockframework.mock.IMockConfiguration
Returns the name of the mock object.
getName() - Method in interface org.spockframework.mock.IMockMethod
Returns the name of the method.
getName() - Method in interface org.spockframework.mock.IMockObject
Returns the name of this mock object, or null if it has no name.
getNature() - Method in interface org.spockframework.mock.IMockConfiguration
Returns the nature of the mock object.
getParameterTypes() - Method in interface org.spockframework.mock.IMockMethod
Returns the parameter types of the method.
getReturnType() - Method in interface org.spockframework.mock.IMockMethod
Returns the return type of the method.
getSpecification() - Method in interface org.spockframework.mock.IMockObject
Returns the specification that this mock object is attached to.
getText() - Method in interface org.spockframework.mock.IMockInteraction
 
getTimeout() - Method in class spock.util.concurrent.BlockingVariable
Returns the timeout (in seconds).
getTimeout() - Method in class spock.util.concurrent.PollingConditions
Returns the timeout (in seconds) until which the conditions have to be satisfied.
getType() - Method in interface org.spockframework.mock.IMockConfiguration
Returns the interface or class type of the mock object.
getType() - Method in interface org.spockframework.mock.IMockObject
Returns the declared type of this mock object.
GroovyMock() - Method in class spock.lang.MockingApi
Creates a Groovy mock whose type and name are inferred from the left-hand side of the enclosing variable assignment.
GroovyMock(Map<String, Object>) - Method in class spock.lang.MockingApi
Creates a Groovy mock with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
GroovyMock(Class<T>) - Method in class spock.lang.MockingApi
Creates a Groovy mock with the specified type.
GroovyMock(Map<String, Object>, Class<T>) - Method in class spock.lang.MockingApi
Creates a Groovy mock with the specified options and type.
GroovyMock(Closure) - Method in class spock.lang.MockingApi
Creates a Groovy mock with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
GroovyMock(Map<String, Object>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy mock with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
GroovyMock(Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy mock with the specified type and interactions.
GroovyMock(Map<String, Object>, Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy mock with the specified options, type, and interactions.
GroovySpy() - Method in class spock.lang.MockingApi
Creates a Groovy spy whose type and name are inferred from the left-hand side of the enclosing variable assignment.
GroovySpy(Map<String, Object>) - Method in class spock.lang.MockingApi
Creates a Groovy spy with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
GroovySpy(Class<T>) - Method in class spock.lang.MockingApi
Creates a Groovy spy with the specified type.
GroovySpy(Map<String, Object>, Class<T>) - Method in class spock.lang.MockingApi
Creates a Groovy spy with the specified options and type.
GroovySpy(Closure) - Method in class spock.lang.MockingApi
Creates a Groovy spy with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
GroovySpy(Map<String, Object>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy spy with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
GroovySpy(Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy spy with the specified type and interactions.
GroovySpy(Map<String, Object>, Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy spy with the specified options, type, and interactions.
GroovyStub() - Method in class spock.lang.MockingApi
Creates a Groovy stub whose type and name are inferred from the left-hand side of the enclosing variable assignment.
GroovyStub(Map<String, Object>) - Method in class spock.lang.MockingApi
Creates a Groovy stub with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
GroovyStub(Class<T>) - Method in class spock.lang.MockingApi
Creates a Groovy stub with the specified type.
GroovyStub(Map<String, Object>, Class<T>) - Method in class spock.lang.MockingApi
Creates a Groovy stub with the specified options and type.
GroovyStub(Closure) - Method in class spock.lang.MockingApi
Creates a Groovy stub with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
GroovyStub(Map<String, Object>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy stub with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
GroovyStub(Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy stub with the specified type and interactions.
GroovyStub(Map<String, Object>, Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a Groovy stub with the specified options, type, and interactions.

H

HamcrestSupport - Class in spock.util.matcher
 
HamcrestSupport() - Constructor for class spock.util.matcher.HamcrestSupport
 
handle(IMockInvocation) - Method in interface org.spockframework.mock.IMockController
 

I

IArgumentConstraint - Interface in org.spockframework.mock
A constraint on an invocation argument.
IChainableResponseGenerator - Interface in org.spockframework.mock
Generates return values for invocations on mock objects.
IDefaultResponse - Interface in org.spockframework.mock
A strategy for responding to unexpected method calls.
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.
IInteractionAware - Interface in org.spockframework.mock
 
IInteractionScope - Interface in org.spockframework.mock
An interaction scope holds a group of interactions that will be verified, and thereafter removed, at the same time.
IInvocationConstraint - Interface in org.spockframework.mock
 
IMockConfiguration - Interface in org.spockframework.mock
Configuration options for mock objects.
IMockController - Interface in org.spockframework.mock
 
IMockFactory - Interface in org.spockframework.mock
 
IMockInteraction - Interface in org.spockframework.mock
An anticipated interaction between the SUT and one or more mock objects.
IMockInvocation - Interface in org.spockframework.mock
A method invocation on a mock object.
IMockMethod - Interface in org.spockframework.mock
Represents a method that can be mocked.
IMockObject - Interface in org.spockframework.mock
 
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
 
INSTANCE - Static variable in class org.spockframework.mock.CallRealMethodResponse
 
INSTANCE - Static variable in class org.spockframework.mock.DefaultEqualsHashCodeToStringInteractions
 
INSTANCE - Static variable in class org.spockframework.mock.EmptyOrDummyResponse
 
INSTANCE - Static variable in class org.spockframework.mock.ZeroOrNullResponse
 
interaction(Closure) - Method in class spock.lang.MockingApi
Encloses one or more interaction definitions in a then block.
InteractionNotSatisfiedError - Error in org.spockframework.mock
Base class for exceptions thrown to indicate that one or more interactions were not satisfied.
InteractionNotSatisfiedError() - Constructor for error org.spockframework.mock.InteractionNotSatisfiedError
 
IResponseGenerator - Interface in org.spockframework.mock
Generates responses to mock invocations.
isAtEndOfCycle() - Method in interface org.spockframework.mock.IChainableResponseGenerator
 
isEmpty() - Method in class spock.config.IncludeExcludeCriteria
 
isExhausted() - Method in interface org.spockframework.mock.IMockInteraction
 
isGlobal() - Method in interface org.spockframework.mock.IMockConfiguration
Tells whether a mock object stands in for all objects of the mocked type, or just for itself.
isMock(Object) - Method in class org.spockframework.mock.MockDetector
Tells whether the given object is a (Spock) mock object.
ISpockMockObject - Interface in org.spockframework.mock
Marker-like interface implemented by all mock objects that allows MockDetector to detect mock objects.
isRequired() - Method in interface org.spockframework.mock.IMockInteraction
 
isSatisfied() - Method in interface org.spockframework.mock.IMockInteraction
 
isSatisfiedBy(Object) - Method in interface org.spockframework.mock.IArgumentConstraint
 
isSatisfiedBy(IMockInvocation) - Method in interface org.spockframework.mock.IInvocationConstraint
 
isStatic() - Method in interface org.spockframework.mock.IMockMethod
Tells whether the method is static or an instance method.
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.
isUseObjenesis() - Method in interface org.spockframework.mock.IMockConfiguration
Tells whether the Objenesis library, if available on the class path, should be used for constructing the mock object, rather than calling a constructor.
isUseObjenesis() - Method in enum org.spockframework.mock.MockNature
Tells whether class-based mock objects should be instantiated with the Objenesis library (if available), or by calling a real constructor.
isVerified() - Method in interface org.spockframework.mock.IMockConfiguration
Tells whether invocations on the mock object should be verified.
isVerified() - Method in interface org.spockframework.mock.IMockObject
Tells whether this mock object supports verification of invocations.
isVerified() - Method in enum org.spockframework.mock.MockNature
Tells whether method calls should be verified.

M

match(IMockInvocation) - Method in class org.spockframework.mock.DefaultEqualsHashCodeToStringInteractions
 
match(IMockInvocation) - Method in interface org.spockframework.mock.IInteractionScope
 
matches(IMockInvocation) - Method in interface org.spockframework.mock.IMockInteraction
 
matches(Object, IMockInteraction) - Method in interface org.spockframework.mock.IMockObject
Tells whether this mock object matches the target of the specified interaction.
Mock() - Method in class spock.lang.MockingApi
Creates a mock whose type and name are inferred from the left-hand side of the enclosing variable assignment.
Mock(Map<String, Object>) - Method in class spock.lang.MockingApi
Creates a mock with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
Mock(Class<T>) - Method in class spock.lang.MockingApi
Creates a mock with the specified type.
Mock(Map<String, Object>, Class<T>) - Method in class spock.lang.MockingApi
Creates a mock with the specified options and type.
Mock(Closure) - Method in class spock.lang.MockingApi
Creates a mock with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
Mock(Map<String, Object>, Closure) - Method in class spock.lang.MockingApi
Creates a mock with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
Mock(Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a mock with the specified type and interactions.
Mock(Map<String, Object>, Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a mock with the specified options, type, and interactions.
MockDetector - Class in org.spockframework.mock
Detects mock objects and provides information about them.
MockDetector() - Constructor for class org.spockframework.mock.MockDetector
 
MockImplementation - Enum in org.spockframework.mock
Determines how method calls are processed and matched against interactions.
MockingApi - Class in spock.lang
Spock's mocking API primarily consists of the following factory methods: Mock() Creates a general-purpose test double that supports both stubbing and mocking. Stub() Creates a test double that supports stubbing but not mocking. Spy() Creates a test double that, by default, delegates all calls to a real object.
MockingApi() - Constructor for class spock.lang.MockingApi
 
MockNature - Enum in org.spockframework.mock
A named set of defaults for a mock's configuration options.

N

noExceptionThrown() - Method in class spock.lang.Specification
Specifies that no exception should be thrown, failing with a UnallowedExceptionThrownError otherwise.
notThrown(Class<? extends Throwable>) - Method in class spock.lang.Specification
Specifies that no exception of the given type should be thrown, failing with a UnallowedExceptionThrownError otherwise.

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
 
org.spockframework.mock - package org.spockframework.mock
Spock's built-in mocking framework.

P

PollingConditions - Class in spock.util.concurrent
Repeatedly evaluates one or more conditions until they are satisfied or a timeout has elapsed.
PollingConditions() - Constructor for class spock.util.concurrent.PollingConditions
 

R

respond(IMockInvocation) - Method in class org.spockframework.mock.CallRealMethodResponse
 
respond(IMockInvocation) - Method in class org.spockframework.mock.EmptyOrDummyResponse
 
respond(IMockInvocation) - Method in interface org.spockframework.mock.IResponseGenerator
 
respond(IMockInvocation) - Method in class org.spockframework.mock.ZeroOrNullResponse
 
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.
setDelay(double) - Method in class spock.util.concurrent.PollingConditions
Sets the delay (in seconds) between successive evaluations of the conditions.
setFactor(double) - Method in class spock.util.concurrent.PollingConditions
Sets the factor by which the delay grows (or shrinks) after each evaluation of the conditions.
setInitialDelay(double) - Method in class spock.util.concurrent.PollingConditions
Sets the initial delay (in seconds) before first evaluating the conditions.
setInteraction(IMockInteraction) - Method in interface org.spockframework.mock.IInteractionAware
 
setTimeout(double) - Method in class spock.util.concurrent.PollingConditions
Sets the timeout (in seconds) until which the conditions have to be satisfied.
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.
Spy() - Method in class spock.lang.MockingApi
Creates a spy whose type and name are inferred from the left-hand side of the enclosing variable assignment.
Spy(Map<String, Object>) - Method in class spock.lang.MockingApi
Creates a spy with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
Spy(Class<T>) - Method in class spock.lang.MockingApi
Creates a spy with the specified type.
Spy(Map<String, Object>, Class<T>) - Method in class spock.lang.MockingApi
Creates a spy with the specified options and type.
Spy(Closure) - Method in class spock.lang.MockingApi
Creates a spy with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
Spy(Map<String, Object>, Closure) - Method in class spock.lang.MockingApi
Creates a spy with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
Spy(Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a spy with the specified type and interactions.
Spy(Map<String, Object>, Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a spy with the specified options, type, and interactions.
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.
Stub() - Method in class spock.lang.MockingApi
Creates a stub whose type and name are inferred from the left-hand side of the enclosing variable assignment.
Stub(Map<String, Object>) - Method in class spock.lang.MockingApi
Creates a stub with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
Stub(Class<T>) - Method in class spock.lang.MockingApi
Creates a stub with the specified type.
Stub(Map<String, Object>, Class<T>) - Method in class spock.lang.MockingApi
Creates a stub with the specified options and type.
Stub(Closure) - Method in class spock.lang.MockingApi
Creates a stub with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
Stub(Map<String, Object>, Closure) - Method in class spock.lang.MockingApi
Creates a stub with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.
Stub(Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a stub with the specified type and interactions.
Stub(Map<String, Object>, Class<T>, Closure) - Method in class spock.lang.MockingApi
Creates a stub with the specified options, type, and interactions.
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.
TooFewInvocationsError - Error in org.spockframework.mock
Thrown to indicate that one or more mandatory interactions matched too few invocations.
TooFewInvocationsError(List<IMockInteraction>, List<IMockInvocation>) - Constructor for error org.spockframework.mock.TooFewInvocationsError
 
TooManyInvocationsError - Error in org.spockframework.mock
Thrown to indicate that a mandatory interaction matched too many invocations.
TooManyInvocationsError(IMockInteraction, List<IMockInvocation>) - Constructor for error org.spockframework.mock.TooManyInvocationsError
 

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.

V

valueOf(String) - Static method in enum org.spockframework.mock.MockImplementation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.spockframework.mock.MockNature
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.spockframework.mock.MockImplementation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.spockframework.mock.MockNature
Returns an array containing the constants of this enum type, in the order they are declared.
verifyInteractions() - Method in class org.spockframework.mock.DefaultEqualsHashCodeToStringInteractions
 
verifyInteractions() - Method in interface org.spockframework.mock.IInteractionScope
 

W

with(Object, Closure) - Method in class spock.lang.Specification
 
within(double, Closure<?>) - Method in class spock.util.concurrent.PollingConditions
Repeatedly evaluates the specified conditions until they are satisfied or the specified timeout (in seconds) has elapsed.
WrongInvocationOrderError - Error in org.spockframework.mock
Thrown if an invocation on a mock object occurs too late.
WrongInvocationOrderError(IMockInteraction, IMockInvocation) - Constructor for error org.spockframework.mock.WrongInvocationOrderError
 

Z

ZeroOrNullResponse - Class in org.spockframework.mock
A response strategy that returns zero, false, or null, depending on the method's return type.

_

_ - Static variable in class spock.lang.Specification
The wildcard symbol.
$ A B C D E F G H I M N O P R S T U V W Z _