Package org.spockframework.mock.runtime
Class InteractionScope
- java.lang.Object
-
- org.spockframework.mock.runtime.InteractionScope
-
- All Implemented Interfaces:
IInteractionScope
public class InteractionScope extends java.lang.Object implements IInteractionScope
A scope for interactions defined outside a then-block- Author:
- Peter Niederwieser
-
-
Constructor Summary
Constructors Constructor Description InteractionScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInteraction(IMockInteraction interaction)
void
addOrderingBarrier()
void
addUnmatchedInvocation(IMockInvocation invocation)
IMockInteraction
match(IMockInvocation invocation)
void
verifyInteractions()
-
-
-
Method Detail
-
addInteraction
public void addInteraction(IMockInteraction interaction)
- Specified by:
addInteraction
in interfaceIInteractionScope
-
addOrderingBarrier
public void addOrderingBarrier()
- Specified by:
addOrderingBarrier
in interfaceIInteractionScope
-
addUnmatchedInvocation
public void addUnmatchedInvocation(IMockInvocation invocation)
- Specified by:
addUnmatchedInvocation
in interfaceIInteractionScope
-
match
public IMockInteraction match(IMockInvocation invocation)
- Specified by:
match
in interfaceIInteractionScope
-
verifyInteractions
public void verifyInteractions()
- Specified by:
verifyInteractions
in interfaceIInteractionScope
-
-