| Package | Description |
|---|---|
| org.spockframework.mock |
Spock's built-in mocking framework.
|
| org.spockframework.mock.runtime |
| Modifier and Type | Class | Description |
|---|---|---|
class |
CallRealMethodResponse |
A response strategy that delegates method calls to the real object underlying the mock (if any).
|
class |
EmptyOrDummyResponse |
A response strategy that returns zero, an "empty" object, or a "dummy" object,
depending on the method's declared return type.
|
class |
ZeroOrNullResponse |
A response strategy that returns zero, false, or null, depending on the method's return type.
|
| Modifier and Type | Method | Description |
|---|---|---|
IDefaultResponse |
IMockConfiguration.getDefaultResponse() |
Returns the default response strategy for the mock object.
|
IDefaultResponse |
IMockObject.getDefaultResponse() |
Returns the default response strategy for this mock object.
|
IDefaultResponse |
MockNature.getDefaultResponse() |
Returns the strategy for responding to unexpected method calls.
|
| Modifier and Type | Method | Description |
|---|---|---|
IDefaultResponse |
MockConfiguration.getDefaultResponse() |
|
IDefaultResponse |
MockObject.getDefaultResponse() |
| Constructor | Description |
|---|---|
MockObject(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object instance,
boolean verified,
boolean global,
IDefaultResponse defaultResponse,
Specification specification) |
Copyright © 2018. All rights reserved