Package org.easymock.internal
Class UnorderedBehavior
- java.lang.Object
-
- org.easymock.internal.UnorderedBehavior
-
- All Implemented Interfaces:
java.io.Serializable
public class UnorderedBehavior extends java.lang.Object implements java.io.SerializableA 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleancheckOrderprivate java.util.List<ExpectedInvocationAndResults>resultsprivate static longserialVersionUID
-
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)java.util.List<ErrorMessage>getMessages(Invocation invocation)booleanverify()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
results
private final java.util.List<ExpectedInvocationAndResults> results
-
checkOrder
private final boolean checkOrder
-
-
Method Detail
-
addExpected
public void addExpected(ExpectedInvocation expected, Result result, Range count)
-
addActual
public Result addActual(Invocation actual)
-
verify
public boolean verify()
-
getMessages
public java.util.List<ErrorMessage> getMessages(Invocation invocation)
-
allowsExpectedInvocation
public boolean allowsExpectedInvocation(ExpectedInvocation expected, boolean checkOrder)
-
-