Package | Description |
---|---|
org.spockframework.mock |
Spock's built-in mocking framework.
|
org.spockframework.mock.runtime |
Modifier and Type | Class and 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 and Description |
---|---|
IDefaultResponse |
MockNature.getDefaultResponse()
Returns the strategy for responding to unexpected method calls.
|
IDefaultResponse |
IMockObject.getDefaultResponse()
Returns the default response strategy for this mock object.
|
IDefaultResponse |
IMockConfiguration.getDefaultResponse()
Returns the default response strategy for the mock object.
|
Modifier and Type | Method and Description |
---|---|
IDefaultResponse |
MockObject.getDefaultResponse() |
IDefaultResponse |
MockConfiguration.getDefaultResponse() |
Constructor and Description |
---|
MockObject(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object instance,
boolean verified,
boolean global,
IDefaultResponse defaultResponse,
Specification specification) |
Copyright © 2015. All rights reserved