com.mockobjects.dynamic

Class CallOnceExpectation

Implemented Interfaces:
Callable, Verifiable

public class CallOnceExpectation
extends java.lang.Object
implements Callable

Constructor Summary

CallOnceExpectation(Callable delegate)

Method Summary

Object
call(Mock mock, String methodName, Object[] args)
String
getDescription()
boolean
matches(String methodName, Object[] args)
String
toString()
void
verify()

Constructor Details

CallOnceExpectation

public CallOnceExpectation(Callable delegate)

Method Details

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

toString

public String toString()

verify

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

Copyright © 2002 Mock Objects. All Rights Reserved.