org.easymock.internal
Class RecordState

java.lang.Object
  extended by org.easymock.internal.RecordState
All Implemented Interfaces:
java.io.Serializable, ILegacyMatcherMethods, ILegacyMethods, IMocksControlState

public class RecordState
extends java.lang.Object
implements IMocksControlState, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
RecordState(IMocksBehavior behavior)
           
 
Method Summary
 void andAnswer(IAnswer<?> answer)
           
 void andDelegateTo(java.lang.Object delegateTo)
           
 void andReturn(java.lang.Object value)
           
 void andStubAnswer(IAnswer<?> answer)
           
 void andStubDelegateTo(java.lang.Object delegateTo)
           
 void andStubReturn(java.lang.Object value)
           
 void andStubThrow(java.lang.Throwable throwable)
           
 void andThrow(java.lang.Throwable throwable)
           
 void assertRecordState()
           
 void asStub()
           
 void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread)
           
 void checkOrder(boolean value)
           
static java.lang.Object emptyReturnValueFor(java.lang.Class<?> type)
           
 java.lang.Object invoke(Invocation invocation)
           
 void makeThreadSafe(boolean threadSafe)
           
 void replay()
           
 void setDefaultMatcher(ArgumentsMatcher matcher)
           
 void setDefaultReturnValue(java.lang.Object value)
           
 void setDefaultThrowable(java.lang.Throwable throwable)
           
 void setDefaultVoidCallable()
           
 void setMatcher(java.lang.reflect.Method method, ArgumentsMatcher matcher)
           
 void times(Range range)
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordState

public RecordState(IMocksBehavior behavior)
Method Detail

assertRecordState

public void assertRecordState()
Specified by:
assertRecordState in interface IMocksControlState

invoke

public java.lang.Object invoke(Invocation invocation)
Specified by:
invoke in interface IMocksControlState

replay

public void replay()
Specified by:
replay in interface IMocksControlState

verify

public void verify()
Specified by:
verify in interface IMocksControlState

andReturn

public void andReturn(java.lang.Object value)
Specified by:
andReturn in interface IMocksControlState

andThrow

public void andThrow(java.lang.Throwable throwable)
Specified by:
andThrow in interface IMocksControlState

andAnswer

public void andAnswer(IAnswer<?> answer)
Specified by:
andAnswer in interface IMocksControlState

andDelegateTo

public void andDelegateTo(java.lang.Object delegateTo)
Specified by:
andDelegateTo in interface IMocksControlState

andStubReturn

public void andStubReturn(java.lang.Object value)
Specified by:
andStubReturn in interface IMocksControlState

setDefaultReturnValue

public void setDefaultReturnValue(java.lang.Object value)
Specified by:
setDefaultReturnValue in interface ILegacyMethods

asStub

public void asStub()
Specified by:
asStub in interface IMocksControlState

setDefaultVoidCallable

public void setDefaultVoidCallable()
Specified by:
setDefaultVoidCallable in interface ILegacyMethods

andStubThrow

public void andStubThrow(java.lang.Throwable throwable)
Specified by:
andStubThrow in interface IMocksControlState

setDefaultThrowable

public void setDefaultThrowable(java.lang.Throwable throwable)
Specified by:
setDefaultThrowable in interface ILegacyMethods

andStubAnswer

public void andStubAnswer(IAnswer<?> answer)
Specified by:
andStubAnswer in interface IMocksControlState

andStubDelegateTo

public void andStubDelegateTo(java.lang.Object delegateTo)
Specified by:
andStubDelegateTo in interface IMocksControlState

times

public void times(Range range)
Specified by:
times in interface IMocksControlState

emptyReturnValueFor

public static java.lang.Object emptyReturnValueFor(java.lang.Class<?> type)

checkOrder

public void checkOrder(boolean value)
Specified by:
checkOrder in interface IMocksControlState

makeThreadSafe

public void makeThreadSafe(boolean threadSafe)
Specified by:
makeThreadSafe in interface IMocksControlState

checkIsUsedInOneThread

public void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread)
Specified by:
checkIsUsedInOneThread in interface IMocksControlState

setDefaultMatcher

public void setDefaultMatcher(ArgumentsMatcher matcher)
Specified by:
setDefaultMatcher in interface ILegacyMatcherMethods

setMatcher

public void setMatcher(java.lang.reflect.Method method,
                       ArgumentsMatcher matcher)
Specified by:
setMatcher in interface ILegacyMatcherMethods


Copyright © 2001-2009 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the MIT licence.]]>