public class MocksBehavior extends java.lang.Object implements IMocksBehavior, java.io.Serializable
Constructor and Description |
---|
MocksBehavior(boolean nice) |
Modifier and Type | Method and Description |
---|---|
Result |
addActual(Invocation actual) |
void |
addExpected(ExpectedInvocation expected,
Result result,
Range count) |
void |
addStub(ExpectedInvocation expected,
Result result) |
void |
checkOrder(boolean value) |
void |
checkThreadSafety() |
LegacyMatcherProvider |
getLegacyMatcherProvider() |
boolean |
isThreadSafe() |
void |
makeThreadSafe(boolean isThreadSafe) |
void |
setDefaultMatcher(ArgumentsMatcher matcher) |
void |
setMatcher(java.lang.reflect.Method method,
ArgumentsMatcher matcher) |
void |
shouldBeUsedInOneThread(boolean shouldBeUsedInOneThread) |
void |
verify() |
public final void addStub(ExpectedInvocation expected, Result result)
addStub
in interface IMocksBehavior
public void addExpected(ExpectedInvocation expected, Result result, Range count)
addExpected
in interface IMocksBehavior
public final Result addActual(Invocation actual)
addActual
in interface IMocksBehavior
public void verify()
verify
in interface IMocksBehavior
public void checkOrder(boolean value)
checkOrder
in interface IMocksBehavior
public void makeThreadSafe(boolean isThreadSafe)
makeThreadSafe
in interface IMocksBehavior
public void shouldBeUsedInOneThread(boolean shouldBeUsedInOneThread)
shouldBeUsedInOneThread
in interface IMocksBehavior
public boolean isThreadSafe()
isThreadSafe
in interface IMocksBehavior
public void checkThreadSafety()
checkThreadSafety
in interface IMocksBehavior
public LegacyMatcherProvider getLegacyMatcherProvider()
public void setDefaultMatcher(ArgumentsMatcher matcher)
setDefaultMatcher
in interface ILegacyMatcherMethods
public void setMatcher(java.lang.reflect.Method method, ArgumentsMatcher matcher)
setMatcher
in interface ILegacyMatcherMethods
Copyright © 2001-2009 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the MIT licence.]]>