Lines Matching refs:matchers
25 import org.easymock.internal.matchers.Equals;
36 private final List<IArgumentMatcher> matchers; field in ExpectedInvocation
39 List<IArgumentMatcher> matchers) { in ExpectedInvocation() argument
40 this(invocation, matchers, null); in ExpectedInvocation()
44 List<IArgumentMatcher> matchers, @SuppressWarnings("deprecation") in ExpectedInvocation() argument
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation, in ExpectedInvocation()
49 matchers) : null; in ExpectedInvocation()
53 List<IArgumentMatcher> matchers) { in createMissingMatchers() argument
54 if (matchers != null) { in createMissingMatchers()
55 if (matchers.size() != invocation.getArguments().length) { in createMissingMatchers()
58 + " matchers expected, " + matchers.size() in createMissingMatchers()
61 return matchers; in createMissingMatchers()
79 … && ((this.matchers == null && other.matchers == null) || (this.matchers != null && this.matchers in equals()
80 .equals(other.matchers))); in equals()
89 return matchers != null ? this.invocation.getMock().equals( in matches()
97 if (arguments.length != matchers.size()) { in matches()
101 if (!matchers.get(i).matches(arguments[i])) { in matches()
110 return matchers != null ? myToString() : invocation.toString(matcher); in toString()
117 for (Iterator<IArgumentMatcher> it = matchers.iterator(); it.hasNext();) { in myToString()