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 boolean
isSatisfiedBy(IMockInvocation invocation)
void
setInteraction(IMockInteraction interaction)
-
-
-
Method Detail
-
isSatisfiedBy
public boolean isSatisfiedBy(IMockInvocation invocation)
- Specified by:
isSatisfiedBy
in interfaceIInvocationConstraint
-
setInteraction
public void setInteraction(IMockInteraction interaction)
- Specified by:
setInteraction
in interfaceIInteractionAware
-
-