org.spockframework.mock
Class MockInteraction
java.lang.Object
org.spockframework.mock.MockInteraction
- All Implemented Interfaces:
- IMockInteraction
public class MockInteraction
- extends java.lang.Object
- implements IMockInteraction
An anticipated interaction between the SUT and one or more mock objects.
- Author:
- Peter Niederwieser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MockInteraction
public MockInteraction(int line,
int column,
java.lang.String text,
int minCount,
int maxCount,
java.util.List<IInvocationConstraint> matchers,
IResultGenerator resultGenerator)
matches
public boolean matches(IMockInvocation invocation)
- Specified by:
matches
in interface IMockInteraction
accept
public java.lang.Object accept(IMockInvocation invocation)
- Specified by:
accept
in interface IMockInteraction
isSatisfied
public boolean isSatisfied()
- Specified by:
isSatisfied
in interface IMockInteraction
isExhausted
public boolean isExhausted()
- Specified by:
isExhausted
in interface IMockInteraction
getLine
public int getLine()
- Specified by:
getLine
in interface IMockInteraction
getColumn
public int getColumn()
- Specified by:
getColumn
in interface IMockInteraction
getText
public java.lang.String getText()
- Specified by:
getText
in interface IMockInteraction
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2013. All rights reserved