org.spockframework.mock
Class InteractionScope

java.lang.Object
  extended by org.spockframework.mock.InteractionScope
All Implemented Interfaces:
IInteractionScope

public class InteractionScope
extends Object
implements IInteractionScope

A scope for interactions defined outside a then-block

Author:
Peter Niederwieser

Constructor Summary
InteractionScope()
           
 
Method Summary
 void addInteraction(IMockInteraction interaction)
           
 void addOrderingBarrier()
           
 IMockInteraction match(IMockInvocation invocation)
           
 void verifyInteractions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionScope

public InteractionScope()
Method Detail

addInteraction

public void addInteraction(IMockInteraction interaction)
Specified by:
addInteraction in interface IInteractionScope

addOrderingBarrier

public void addOrderingBarrier()
Specified by:
addOrderingBarrier in interface IInteractionScope

match

public IMockInteraction match(IMockInvocation invocation)
Specified by:
match in interface IInteractionScope

verifyInteractions

public void verifyInteractions()
Specified by:
verifyInteractions in interface IInteractionScope


Copyright © 2010. All Rights Reserved.