01: package net.sf.mockcreator.expectable;
02:
03: /**
04: * The marker interface defines base for user-defined comparisions for passed
05: * parameters. It is useful when plain old equals() just is not enough (like
06: * date comparision with a few seconds away allowed, ignorable parameters,
07: * substring matching with no attention to other stuff, etc).
08: *
09: */
10: public interface ExpectableParameter {
11: /**
12: * Returns true if passed object matches expected.
13: */
14: public boolean isExpected(Object actualParameter);
15: }
|