Package org.spockframework.mock.runtime
Class InteractionBuilder
java.lang.Object
org.spockframework.mock.runtime.InteractionBuilder
- Author:
- Peter Niederwieser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgName
(String name) addCodeArg
(groovy.lang.Closure closure) addCodeResponse
(groovy.lang.Closure closure) addConstantResponse
(Object constant) addEqualArg
(Object arg) addEqualMethodName
(String name) addEqualPropertyName
(String name) addEqualTarget
(Object target) addIterableResponse
(Object iterable) addRegexMethodName
(String regex) addRegexPropertyName
(String regex) build()
setArgListKind
(boolean isPositional) setFixedCount
(Object count) setRangeCount
(Object minCount, Object maxCount, boolean inclusive) typeLastArg
(Class<?> type)
-
Field Details
-
SET_FIXED_COUNT
- See Also:
-
SET_RANGE_COUNT
- See Also:
-
ADD_EQUAL_TARGET
- See Also:
-
ADD_WILDCARD_TARGET
- See Also:
-
ADD_EQUAL_PROPERTY_NAME
- See Also:
-
ADD_REGEX_PROPERTY_NAME
- See Also:
-
ADD_EQUAL_METHOD_NAME
- See Also:
-
ADD_REGEX_METHOD_NAME
- See Also:
-
SET_ARG_LIST_KIND
- See Also:
-
ADD_ARG_NAME
- See Also:
-
ADD_CODE_ARG
- See Also:
-
ADD_EQUAL_ARG
- See Also:
-
TYPE_LAST_ARG
- See Also:
-
NEGATE_LAST_ARG
- See Also:
-
ADD_CONSTANT_RESPONSE
- See Also:
-
ADD_CODE_RESPONSE
- See Also:
-
ADD_ITERABLE_RESPONSE
- See Also:
-
BUILD
- See Also:
-
-
Constructor Details
-
InteractionBuilder
-
-
Method Details
-
setFixedCount
-
setRangeCount
-
addEqualTarget
-
addWildcardTarget
-
addEqualPropertyName
-
addRegexPropertyName
-
addEqualMethodName
-
addRegexMethodName
-
setArgListKind
-
addArgName
-
addCodeArg
-
addEqualArg
-
typeLastArg
-
negateLastArg
-
addConstantResponse
-
addCodeResponse
-
addIterableResponse
-
build
-