com.mockobjects.dynamic

Class CallSequence

Implemented Interfaces:
Callable, CallableAddable, Verifiable

public class CallSequence
extends CallCollection
implements Callable, CallableAddable

Method Summary

void
addExpect(Callable call)
void
addMatch(Callable call)
Object
call(Mock mock, String methodName, Object[] args)
String
getDescription()
boolean
matches(String methodName, Object[] args)
void
reset()
void
verify()
Throw an AssertionFailedException if any expectations have not been met.

Method Details

addExpect

public void addExpect(Callable call)
Specified by:
addExpect in interface CallableAddable

addMatch

public void addMatch(Callable call)
Specified by:
addMatch in interface CallableAddable

call

public Object call(Mock mock,
                   String methodName,
                   Object[] args)
            throws Throwable
Specified by:
call in interface Callable

getDescription

public String getDescription()
Specified by:
getDescription in interface Callable

matches

public boolean matches(String methodName,
                       Object[] args)
Specified by:
matches in interface Callable

reset

public void reset()
Specified by:
reset in interface CallableAddable

verify

public void verify()
Throw an AssertionFailedException if any expectations have not been met.
Specified by:
verify in interface Verifiable

Copyright © 2002 Mock Objects. All Rights Reserved.