Top Description Fields Constructors Methods
org.easymock.internal

public Class UnorderedBehavior

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayList, .List

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

Field Summary

Modifier and TypeField and Description
private final boolean
private final List<ExpectedInvocationAndResults>
private static final long

Constructor Summary

AccessConstructor and Description
public
UnorderedBehavior(boolean checkOrder)

Method Summary

Modifier and TypeMethod and Description
public Result
public void
addExpected(ExpectedInvocation expected, Result result, Range count)

public boolean
allowsExpectedInvocation(ExpectedInvocation expected, boolean checkOrder)

public List<ErrorMessage>
getMessages(Invocation invocation)

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkOrderback to summary
private final boolean checkOrder
resultsback to summary
private final List<ExpectedInvocationAndResults> results
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

UnorderedBehaviorback to summary
public UnorderedBehavior(boolean checkOrder)

Method Detail

addActualback to summary
public Result addActual(Invocation actual)
addExpectedback to summary
public void addExpected(ExpectedInvocation expected, Result result, Range count)
allowsExpectedInvocationback to summary
public boolean allowsExpectedInvocation(ExpectedInvocation expected, boolean checkOrder)
getMessagesback to summary
public List<ErrorMessage> getMessages(Invocation invocation)
verifyback to summary
public boolean verify()