- 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.
- 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.
- 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.
- 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.