org.spockframework.mock
Class MockInteraction

java.lang.Object
  extended by 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

Constructor Summary
MockInteraction(int line, int column, java.lang.String text, int minCount, int maxCount, java.util.List<IInvocationConstraint> matchers, IResultGenerator resultGenerator)
           
 
Method Summary
 java.lang.Object accept(IMockInvocation invocation)
           
 int getColumn()
           
 int getLine()
           
 java.lang.String getText()
           
 boolean isExhausted()
           
 boolean isSatisfied()
           
 boolean matches(IMockInvocation invocation)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockInteraction

public MockInteraction(int line,
                       int column,
                       java.lang.String text,
                       int minCount,
                       int maxCount,
                       java.util.List<IInvocationConstraint> matchers,
                       IResultGenerator resultGenerator)
Method Detail

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