Interface | Description |
---|---|
IMockMakerSettings |
Settings passed to the
IMockMaker and created explicitly for the requested mock maker. |
MockFactory |
Base interface for Java based mocks see
MockingApi or DetachedMockFactory for more examples. |
Class | Description |
---|---|
AutoAttachExtension | |
DetachedMockFactory |
This factory allows the creations of mocks outside of a
Specification ,
e.g., in a Spring configuration. |
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.
|
MockMakerId |
Represents the ID of an
IMockMaker . |
MockMakers |
Provides constants and factory methods for known built-in
IMockMaker implementations. |
Annotation Type | Description |
---|---|
AutoAttach |
Automatically attaches detached mocks
DetachedMockFactory to a Specification. |