org.jmock.internal
Class InvocationExpectationBuilder

java.lang.Object
  extended by org.jmock.internal.InvocationExpectationBuilder
All Implemented Interfaces:
ExpectationCapture, MethodClause, ParametersClause, ReceiverClause

public class InvocationExpectationBuilder
extends Object
implements ExpectationCapture, ReceiverClause, MethodClause, ParametersClause


Constructor Summary
InvocationExpectationBuilder()
           
 
Method Summary
 void addInSequenceOrderingConstraint(Sequence sequence)
           
 void addOrderingConstraint(OrderingConstraint constraint)
           
 void addParameterMatcher(org.hamcrest.Matcher<?> matcher)
           
 void addSideEffect(SideEffect sideEffect)
           
 void checkWasFullySpecified()
           
 void createExpectationFrom(Invocation invocation)
           
 ParametersClause method(org.hamcrest.Matcher<Method> methodMatcher)
           
 ParametersClause method(String nameRegex)
           
 MethodClause of(org.hamcrest.Matcher<?> objectMatcher)
           
<T> T
of(T mockObject)
           
 void setAction(Action action)
           
 void setCardinality(Cardinality cardinality)
           
 Expectation toExpectation(Action defaultAction)
           
 void with(org.hamcrest.Matcher<?>... parameterMatchers)
           
 void withNoArguments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationExpectationBuilder

public InvocationExpectationBuilder()
Method Detail

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.