Package | Description |
---|---|
org.spockframework.mock |
Spock's built-in mocking framework.
|
org.spockframework.mock.response | |
org.spockframework.mock.runtime |
Modifier and Type | Interface and Description |
---|---|
interface |
IChainableResponseGenerator
Generates return values for invocations on mock objects.
|
interface |
IDefaultResponse
A strategy for responding to unexpected method calls.
|
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 | Class and Description |
---|---|
class |
CodeResponseGenerator |
class |
ConstantResponseGenerator |
class |
DefaultResponseGenerator |
class |
IterableResponseGenerator
Generates result values from an iterable object.
|
class |
ResponseGeneratorChain |
class |
SingleResponseGenerator |
class |
WildcardResponseGenerator
Returns the default value for the invoked method's return type.
|
Modifier and Type | Class and Description |
---|---|
class |
CglibRealMethodInvoker |
class |
FailingRealMethodInvoker |
class |
GroovyRealMethodInvoker |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
JavaMockInterceptor.intercept(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
IResponseGenerator realMethodInvoker) |
java.lang.Object |
IProxyBasedMockInterceptor.intercept(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
IResponseGenerator realMethodInvoker) |
java.lang.Object |
GroovyMockInterceptor.intercept(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
IResponseGenerator realMethodInvoker) |
Constructor and Description |
---|
MockInteraction(int line,
int column,
java.lang.String text,
int minCount,
int maxCount,
java.util.List<IInvocationConstraint> constraints,
IResponseGenerator responseGenerator) |
MockInvocation(IMockObject mockObject,
IMockMethod method,
java.util.List<java.lang.Object> arguments,
IResponseGenerator realMethodInvoker) |
Copyright © 2015. All rights reserved