Package org.spockframework.mock.runtime
Class MockInteraction
java.lang.Object
org.spockframework.mock.runtime.MockInteraction
- All Implemented Interfaces:
IMockInteraction
An anticipated interaction between the SUT and one or more mock objects.
- Author:
- Peter Niederwieser
-
Constructor Summary
ConstructorsConstructorDescriptionMockInteraction
(int line, int column, String text, int minCount, int maxCount, List<IInvocationConstraint> constraints, IResponseGenerator responseGenerator) -
Method Summary
Modifier and TypeMethodDescriptionaccept
(IMockInvocation invocation) int
computeSimilarityScore
(IMockInvocation invocation) int
int
getLine()
getText()
boolean
boolean
boolean
boolean
matches
(IMockInvocation invocation) toString()
-
Constructor Details
-
MockInteraction
public MockInteraction(int line, int column, String text, int minCount, int maxCount, List<IInvocationConstraint> constraints, IResponseGenerator responseGenerator)
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceIMockInteraction
-
accept
- Specified by:
accept
in interfaceIMockInteraction
-
getAcceptedInvocations
- Specified by:
getAcceptedInvocations
in interfaceIMockInteraction
-
computeSimilarityScore
- Specified by:
computeSimilarityScore
in interfaceIMockInteraction
-
isSatisfied
public boolean isSatisfied()- Specified by:
isSatisfied
in interfaceIMockInteraction
-
isExhausted
public boolean isExhausted()- Specified by:
isExhausted
in interfaceIMockInteraction
-
isRequired
public boolean isRequired()- Specified by:
isRequired
in interfaceIMockInteraction
-
getLine
public int getLine()- Specified by:
getLine
in interfaceIMockInteraction
-
getColumn
public int getColumn()- Specified by:
getColumn
in interfaceIMockInteraction
-
getText
- Specified by:
getText
in interfaceIMockInteraction
-
toString
-