Uses of Interface
org.spockframework.mock.IResponseGenerator
-
Packages that use IResponseGenerator Package Description org.spockframework.mock Spock's built-in mocking framework.org.spockframework.mock.response org.spockframework.mock.runtime -
-
Uses of IResponseGenerator in org.spockframework.mock
Subinterfaces of IResponseGenerator in org.spockframework.mock Modifier and Type Interface Description interface
IChainableResponseGenerator
Generates return values for invocations on mock objects.interface
IDefaultResponse
A strategy for responding to unexpected method calls.Classes in org.spockframework.mock that implement IResponseGenerator 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. -
Uses of IResponseGenerator in org.spockframework.mock.response
Classes in org.spockframework.mock.response that implement IResponseGenerator Modifier and Type Class 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. -
Uses of IResponseGenerator in org.spockframework.mock.runtime
Classes in org.spockframework.mock.runtime that implement IResponseGenerator Modifier and Type Class Description class
CglibRealMethodInvoker
class
FailingRealMethodInvoker
class
GroovyRealMethodInvoker
Methods in org.spockframework.mock.runtime with parameters of type IResponseGenerator Modifier and Type Method Description java.lang.Object
GroovyMockInterceptor. 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
JavaMockInterceptor. intercept(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] arguments, IResponseGenerator realMethodInvoker)
Constructors in org.spockframework.mock.runtime with parameters of type IResponseGenerator Constructor 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)
-