Package org.spockframework.mock.runtime
Class MockInteractionDecorator
- java.lang.Object
-
- org.spockframework.mock.runtime.MockInteractionDecorator
-
- All Implemented Interfaces:
IMockInteraction
public abstract class MockInteractionDecorator extends java.lang.Object implements IMockInteraction
-
-
Field Summary
Fields Modifier and Type Field Description protected IMockInteraction
decorated
-
Constructor Summary
Constructors Constructor Description MockInteractionDecorator(IMockInteraction decorated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
accept(IMockInvocation invocation)
int
computeSimilarityScore(IMockInvocation invocation)
java.util.List<IMockInvocation>
getAcceptedInvocations()
int
getColumn()
int
getLine()
java.lang.String
getText()
boolean
isExhausted()
boolean
isRequired()
boolean
isSatisfied()
boolean
matches(IMockInvocation invocation)
java.lang.String
toString()
-
-
-
Field Detail
-
decorated
protected final IMockInteraction decorated
-
-
Constructor Detail
-
MockInteractionDecorator
public MockInteractionDecorator(IMockInteraction decorated)
-
-
Method Detail
-
getLine
public int getLine()
- Specified by:
getLine
in interfaceIMockInteraction
-
getColumn
public int getColumn()
- Specified by:
getColumn
in interfaceIMockInteraction
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceIMockInteraction
-
matches
public boolean matches(IMockInvocation invocation)
- Specified by:
matches
in interfaceIMockInteraction
-
accept
public java.lang.Object accept(IMockInvocation invocation)
- Specified by:
accept
in interfaceIMockInteraction
-
getAcceptedInvocations
public java.util.List<IMockInvocation> getAcceptedInvocations()
- Specified by:
getAcceptedInvocations
in interfaceIMockInteraction
-
computeSimilarityScore
public int computeSimilarityScore(IMockInvocation invocation)
- 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-