Package | Description |
---|---|
org.spockframework.mock |
Spock's built-in mocking framework.
|
org.spockframework.mock.runtime | |
org.spockframework.runtime | |
org.spockframework.runtime.extension.builtin | |
spock.lang |
The core specification language.
|
Class and Description |
---|
Specification
Base class for Spock specifications.
|
Class and Description |
---|
Specification
Base class for Spock specifications.
|
Class and Description |
---|
Specification
Base class for Spock specifications.
|
Class and Description |
---|
AutoCleanup
Automatically cleans up the object stored in the annotated field or property
at the end of its life time.
|
FailsWith
Indicates that a feature method is expected to fail with the given exception.
|
Ignore
Indicates that a specification or feature method should not be run.
|
IgnoreIf
Ignores the annotated spec/feature if the given condition holds.
|
IgnoreRest
Indicates that all feature methods except the ones carrying this annotation
should be ignored.
|
Timeout
Indicates that the execution of a method should time out
after the given duration has elapsed.
|
Unroll
Indicates that iterations of a data-driven feature should be made visible
as separate features to the outside world (IDEs, reports, etc.).
|
Class and Description |
---|
MockingApi
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.
|
Copyright © 2016. All rights reserved