- get() - Method in class spock.util.concurrent.BlockingVariable
-
Blocks until a value has been set for this variable, or a timeout expires.
- getCauseChain(Throwable) - Static method in class spock.util.Exceptions
-
Returns a list of all causes of the specified exception.
- getCurrent() - Static method in class spock.util.environment.Jvm
-
Returns the current JVM.
- getCurrent() - Static method in class spock.util.environment.OperatingSystem
-
Returns the current operating system.
- 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.
- getFamily() - Method in class spock.util.environment.OperatingSystem
-
Returns the family of the operating system.
- getInitialDelay() - Method in class spock.util.concurrent.PollingConditions
-
Returns the initial delay (in seconds) before first evaluating the conditions.
- getJavaSpecificationVersion() - Method in class spock.util.environment.Jvm
-
The Java specification version, as returned by the java.specification.version
system property.
- getJavaVersion() - Method in class spock.util.environment.Jvm
-
The Java version, as returned by the java.version
system property.
- getName() - Method in class spock.util.environment.OperatingSystem
-
Returns the name of the operating system, as returned by the os.name
system property.
- getRootCause(Throwable) - Static method in class spock.util.Exceptions
-
Returns the innermost cause of the specified exception.
- 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.
- getVersion() - Method in class spock.util.environment.OperatingSystem
-
Returns the version of the operating system, as returned by the os.version
system property.
- GroovyMock() - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a Groovy mock with the specified type.
- GroovyMock(Map<String, Object>, Class<T>) - Method in class spock.mock.MockingApi
-
Creates a Groovy mock with the specified options and type.
- GroovyMock(Closure) - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a Groovy mock with the specified type and interactions.
- GroovyMock(Map<String, Object>, Class<T>, Closure) - Method in class spock.mock.MockingApi
-
Creates a Groovy mock with the specified options, type, and interactions.
- GroovySpy() - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a Groovy spy with the specified type.
- GroovySpy(Map<String, Object>, Class<T>) - Method in class spock.mock.MockingApi
-
Creates a Groovy spy with the specified options and type.
- GroovySpy(Closure) - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a Groovy spy with the specified type and interactions.
- GroovySpy(Map<String, Object>, Class<T>, Closure) - Method in class spock.mock.MockingApi
-
Creates a Groovy spy with the specified options, type, and interactions.
- GroovyStub() - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a Groovy stub with the specified type.
- GroovyStub(Map<String, Object>, Class<T>) - Method in class spock.mock.MockingApi
-
Creates a Groovy stub with the specified options and type.
- GroovyStub(Closure) - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a Groovy stub with the specified type and interactions.
- GroovyStub(Map<String, Object>, Class<T>, Closure) - Method in class spock.mock.MockingApi
-
Creates a Groovy stub with the specified options, type, and interactions.
- 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 or 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.mock.MockingApi
-
Encloses one or more interaction definitions in a then block.
- isEmpty() - Method in class spock.config.IncludeExcludeCriteria
-
- isJava5() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is 5.
- isJava5Compatible() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is compatible with Java 5.
- isJava6() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is 6.
- isJava6Compatible() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is compatible with Java 6.
- isJava7() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is 7.
- isJava7Compatible() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is compatible with Java 7.
- isJava8() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is 8.
- isJava8Compatible() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is compatible with Java 8.
- isJava9() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is 9.
- isJava9Compatible() - Method in class spock.util.environment.Jvm
-
Tells whether the Java version is compatible with Java 9.
- isLinux() - Method in class spock.util.environment.OperatingSystem
-
Tells whether the operating system family is Linux.
- isMacOs() - Method in class spock.util.environment.OperatingSystem
-
Tells whether the operating system family is Mac OS.
- isOther() - Method in class spock.util.environment.OperatingSystem
-
Tells whether the operating system family is anything other than those listed above.
- isSolaris() - Method in class spock.util.environment.OperatingSystem
-
Tells whether the operating system family is Solaris.
- 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.
- isWindows() - Method in class spock.util.environment.OperatingSystem
-
Tells whether the operating system family is Windows.
- Mock(Class<T>) - Method in class spock.mock.DetachedMockFactory
-
Creates a mock with the specified type.
- Mock(Map<String, Object>, Class<T>) - Method in class spock.mock.DetachedMockFactory
-
Creates a mock with the specified options and type.
- Mock(Class<T>) - Method in interface spock.mock.MockFactory
-
Creates a mock with the specified type.
- Mock(Map<String, Object>, Class<T>) - Method in interface spock.mock.MockFactory
-
Creates a mock with the specified options and type.
- Mock() - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a mock with the specified type.
- Mock(Map<String, Object>, Class<T>) - Method in class spock.mock.MockingApi
-
Creates a mock with the specified options and type.
- Mock(Closure) - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a mock with the specified type and interactions.
- Mock(Map<String, Object>, Class<T>, Closure) - Method in class spock.mock.MockingApi
-
Creates a mock with the specified options, type, and interactions.
- MockFactory - Interface in spock.mock
-
- MockingApi - Class in spock.mock
-
Spock's mocking API primarily consists of the following factory methods:
Mock()
Creates a general-purpose test double that supports both stubbing and mocking.
- MockingApi() - Constructor for class spock.mock.MockingApi
-
- 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.
- 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.guice - package spock.guice
-
Integration with
Guice 2/3.
- spock.lang - package spock.lang
-
The core specification language.
- spock.mock - package spock.mock
-
- spock.unitils - package spock.unitils
-
- spock.util - package spock.util
-
- spock.util.concurrent - package spock.util.concurrent
-
Utilities for testing concurrent code.
- spock.util.environment - package spock.util.environment
-
Utilities for dealing with the test environment.
- 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(Class<T>) - Method in class spock.mock.DetachedMockFactory
-
Creates a spy with the specified type.
- Spy(T) - Method in class spock.mock.DetachedMockFactory
-
- Spy(Map<String, Object>, Class<T>) - Method in class spock.mock.DetachedMockFactory
-
Creates a spy with the specified options and type.
- Spy(Class<T>) - Method in interface spock.mock.MockFactory
-
Creates a spy with the specified type.
- Spy(T) - Method in interface spock.mock.MockFactory
-
Creates a spy wrapping a provided instance.
- Spy(Map<String, Object>, Class<T>) - Method in interface spock.mock.MockFactory
-
Creates a spy with the specified options and type.
- Spy() - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a spy with the specified type.
- Spy(T) - Method in class spock.mock.MockingApi
-
Creates a spy wrapping a provided instance.
- Spy(Map<String, Object>, Class<T>) - Method in class spock.mock.MockingApi
-
Creates a spy with the specified options and type.
- Spy(Closure) - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a spy with the specified type and interactions.
- Spy(Map<String, Object>, Class<T>, Closure) - Method in class spock.mock.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(Class<T>) - Method in class spock.mock.DetachedMockFactory
-
Creates a stub with the specified type.
- Stub(Map<String, Object>, Class<T>) - Method in class spock.mock.DetachedMockFactory
-
Creates a stub with the specified options and type.
- Stub(Class<T>) - Method in interface spock.mock.MockFactory
-
Creates a stub with the specified type.
- Stub(Map<String, Object>, Class<T>) - Method in interface spock.mock.MockFactory
-
Creates a stub with the specified options and type.
- Stub() - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a stub with the specified type.
- Stub(Map<String, Object>, Class<T>) - Method in class spock.mock.MockingApi
-
Creates a stub with the specified options and type.
- Stub(Closure) - Method in class spock.mock.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.mock.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.mock.MockingApi
-
Creates a stub with the specified type and interactions.
- Stub(Map<String, Object>, Class<T>, Closure) - Method in class spock.mock.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.