- java.lang.Object
-
- org.easymock.internal.ExpectedInvocation
-
- All Implemented Interfaces:
Serializable
public final class ExpectedInvocation extends Object implements Serializable
One expected invocation. It is composed of the method invoked and the matchers used to expect the arguments.- Author:
- OFFIS, Tammo Freese
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpectedInvocation(Invocation invocation, List<IArgumentMatcher> matchers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)MethodgetMethod()inthashCode()booleanmatches(Invocation actual)Tells if the actual invocation matches this expected invocation.StringtoString()
-
-
-
Constructor Detail
-
ExpectedInvocation
public ExpectedInvocation(Invocation invocation, List<IArgumentMatcher> matchers)
-
-
Method Detail
-
matches
public boolean matches(Invocation actual)
Tells if the actual invocation matches this expected invocation. It needs to be on the same mock, method and have the same arguments.- Parameters:
actual- the actual invocation to match with the expected one- Returns:
- the invocation to compare
-
getMethod
public Method getMethod()
-
-