Package com.mockobjects.constraint
Class IsEventFrom
java.lang.Object
com.mockobjects.constraint.IsEventFrom
- All Implemented Interfaces:
Constraint
Tests if the value is an event announced by a specific object.
-
Constructor Summary
ConstructorsConstructorDescriptionIsEventFrom(Class event_class, Object source) Constructs an IsEventFrom predicate that returns true for any object derived from event_class announced by source.IsEventFrom(Object source) Constructs an IsEventFrom predicate that returns true for any object derived fromEventObjectannounced by source. -
Method Summary
-
Constructor Details
-
IsEventFrom
Constructs an IsEventFrom predicate that returns true for any object derived fromEventObjectannounced by source. -
IsEventFrom
Constructs an IsEventFrom predicate that returns true for any object derived from event_class announced by source.
-
-
Method Details
-
eval
Description copied from interface:ConstraintEvaluates the constraint for argument o.- Specified by:
evalin interfaceConstraint- Returns:
trueif o meets the constraint,falseif it does not.
-
toString
-