org.easymock.internal

Class ReplayState

Implemented Interfaces:
IMocksControlState

public class ReplayState
extends java.lang.Object
implements IMocksControlState

Constructor Summary

ReplayState(IMocksBehavior behavior)

Method Summary

void
andAnswer(IAnswer answer)
void
andReturn(Object value)
void
andStubAnswer(IAnswer answer)
void
andStubReturn(Object value)
void
andStubThrow(Throwable throwable)
void
andThrow(Throwable throwable)
void
asStub()
void
assertRecordState()
void
callback(Runnable runnable)
void
checkOrder(boolean value)
Object
invoke(Invocation invocation)
void
replay()
void
setDefaultMatcher(ArgumentsMatcher matcher)
void
setDefaultReturnValue(Object value)
void
setDefaultThrowable(Throwable throwable)
void
setDefaultVoidCallable()
void
setMatcher(Method method, ArgumentsMatcher matcher)
void
times(Range range)
void
verify()

Constructor Details

ReplayState

public ReplayState(IMocksBehavior behavior)

Method Details

andAnswer

public void andAnswer(IAnswer answer)

andReturn

public void andReturn(Object value)

andStubAnswer

public void andStubAnswer(IAnswer answer)

andStubReturn

public void andStubReturn(Object value)

andStubThrow

public void andStubThrow(Throwable throwable)

andThrow

public void andThrow(Throwable throwable)

asStub

public void asStub()

assertRecordState

public void assertRecordState()

callback

public void callback(Runnable runnable)

checkOrder

public void checkOrder(boolean value)

invoke

public Object invoke(Invocation invocation)
            throws Throwable

replay

public void replay()

setDefaultMatcher

public void setDefaultMatcher(ArgumentsMatcher matcher)

setDefaultReturnValue

public void setDefaultReturnValue(Object value)

setDefaultThrowable

public void setDefaultThrowable(Throwable throwable)

setDefaultVoidCallable

public void setDefaultVoidCallable()

setMatcher

public void setMatcher(Method method,
                       ArgumentsMatcher matcher)

times

public void times(Range range)

verify

public void verify()