org.jmock.internal
Class InvocationExpectationBuilder
java.lang.Object
org.jmock.internal.InvocationExpectationBuilder
- All Implemented Interfaces:
- ExpectationCapture, MethodClause, ParametersClause, ReceiverClause
public class InvocationExpectationBuilder
- extends Object
- implements ExpectationCapture, ReceiverClause, MethodClause, ParametersClause
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationExpectationBuilder
public InvocationExpectationBuilder()
toExpectation
public Expectation toExpectation(Action defaultAction)
setCardinality
public void setCardinality(Cardinality cardinality)
addParameterMatcher
public void addParameterMatcher(org.hamcrest.Matcher<?> matcher)
addOrderingConstraint
public void addOrderingConstraint(OrderingConstraint constraint)
addInSequenceOrderingConstraint
public void addInSequenceOrderingConstraint(Sequence sequence)
setAction
public void setAction(Action action)
addSideEffect
public void addSideEffect(SideEffect sideEffect)
createExpectationFrom
public void createExpectationFrom(Invocation invocation)
- Specified by:
createExpectationFrom in interface ExpectationCapture
checkWasFullySpecified
public void checkWasFullySpecified()
of
public <T> T of(T mockObject)
- Specified by:
of in interface ReceiverClause
of
public MethodClause of(org.hamcrest.Matcher<?> objectMatcher)
- Specified by:
of in interface ReceiverClause
method
public ParametersClause method(org.hamcrest.Matcher<Method> methodMatcher)
- Specified by:
method in interface MethodClause
method
public ParametersClause method(String nameRegex)
- Specified by:
method in interface MethodClause
with
public void with(org.hamcrest.Matcher<?>... parameterMatchers)
- Specified by:
with in interface ParametersClause
withNoArguments
public void withNoArguments()
- Specified by:
withNoArguments in interface ParametersClause
Copyright © 2003-2012 jMock. All Rights Reserved.