org.easymock.internal
Class MocksBehavior

java.lang.Object
  extended by org.easymock.internal.MocksBehavior
All Implemented Interfaces:
java.io.Serializable, ILegacyMatcherMethods, IMocksBehavior

public class MocksBehavior
extends java.lang.Object
implements IMocksBehavior, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
MocksBehavior(boolean nice)
           
 
Method Summary
 Result addActual(Invocation actual)
           
 void addExpected(ExpectedInvocation expected, Result result, Range count)
           
 void addStub(ExpectedInvocation expected, Result result)
           
 void checkCurrentThreadSameAsLastThread()
           
 void checkOrder(boolean value)
           
 LegacyMatcherProvider getLegacyMatcherProvider()
           
 boolean isThreadSafe()
           
 void makeThreadSafe(boolean isThreadSafe)
           
 void setDefaultMatcher(ArgumentsMatcher matcher)
           
 void setMatcher(java.lang.reflect.Method method, ArgumentsMatcher matcher)
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MocksBehavior

public MocksBehavior(boolean nice)
Method Detail

addStub

public final void addStub(ExpectedInvocation expected,
                          Result result)
Specified by:
addStub in interface IMocksBehavior

addExpected

public void addExpected(ExpectedInvocation expected,
                        Result result,
                        Range count)
Specified by:
addExpected in interface IMocksBehavior

addActual

public final Result addActual(Invocation actual)
Specified by:
addActual in interface IMocksBehavior

verify

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

checkOrder

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

makeThreadSafe

public void makeThreadSafe(boolean isThreadSafe)
Specified by:
makeThreadSafe in interface IMocksBehavior

isThreadSafe

public boolean isThreadSafe()
Specified by:
isThreadSafe in interface IMocksBehavior

checkCurrentThreadSameAsLastThread

public void checkCurrentThreadSameAsLastThread()
Specified by:
checkCurrentThreadSameAsLastThread in interface IMocksBehavior

getLegacyMatcherProvider

public LegacyMatcherProvider getLegacyMatcherProvider()

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