Class TargetConstraint
- java.lang.Object
-
- org.spockframework.mock.constraint.TargetConstraint
-
- All Implemented Interfaces:
IInteractionAware,IInvocationConstraint
public class TargetConstraint extends java.lang.Object implements IInvocationConstraint, IInteractionAware
- Author:
- Peter Niederwieser
-
-
Constructor Summary
Constructors Constructor Description TargetConstraint(java.lang.Object target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSatisfiedBy(IMockInvocation invocation)voidsetInteraction(IMockInteraction interaction)
-
-
-
Method Detail
-
isSatisfiedBy
public boolean isSatisfiedBy(IMockInvocation invocation)
- Specified by:
isSatisfiedByin interfaceIInvocationConstraint
-
setInteraction
public void setInteraction(IMockInteraction interaction)
- Specified by:
setInteractionin interfaceIInteractionAware
-
-