- java.lang.Object
-
- org.easymock.internal.UnorderedBehavior
-
- All Implemented Interfaces:
Serializable
public class UnorderedBehavior extends Object implements Serializable
A bit badly named since this class is used for both ordered and unordered expectations. However, it's the class keeping all expectations and the corresponding results they should return. During the replay phase, it will give the best answer for a call.- Author:
- OFFIS, Tammo Freese
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnorderedBehavior(boolean checkOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultaddActual(Invocation actual)voidaddExpected(ExpectedInvocation expected, Result result, Range count)booleanallowsExpectedInvocation(ExpectedInvocation expected, boolean checkOrder)List<ErrorMessage>getMessages(Invocation invocation)booleanverify()
-
-
-
Method Detail
-
addExpected
public void addExpected(ExpectedInvocation expected, Result result, Range count)
-
addActual
public Result addActual(Invocation actual)
-
verify
public boolean verify()
-
getMessages
public List<ErrorMessage> getMessages(Invocation invocation)
-
allowsExpectedInvocation
public boolean allowsExpectedInvocation(ExpectedInvocation expected, boolean checkOrder)
-
-