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) intcomputeSimilarityScore(IMockInvocation invocation) intintgetLine()getText()booleanbooleanbooleanbooleanmatches(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:
matchesin interfaceIMockInteraction
-
accept
- Specified by:
acceptin interfaceIMockInteraction
-
getAcceptedInvocations
- Specified by:
getAcceptedInvocationsin interfaceIMockInteraction
-
computeSimilarityScore
- Specified by:
computeSimilarityScorein interfaceIMockInteraction
-
isSatisfied
public boolean isSatisfied()- Specified by:
isSatisfiedin interfaceIMockInteraction
-
isExhausted
public boolean isExhausted()- Specified by:
isExhaustedin interfaceIMockInteraction
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceIMockInteraction
-
getLine
public int getLine()- Specified by:
getLinein interfaceIMockInteraction
-
getColumn
public int getColumn()- Specified by:
getColumnin interfaceIMockInteraction
-
getText
- Specified by:
getTextin interfaceIMockInteraction
-
toString
-