com.agical.rmock.core
Interface Expectation

All Superinterfaces:
Visitable
All Known Subinterfaces:
ModifiableExpectation
All Known Implementing Classes:
ExpectationImpl

public interface Expectation
extends Visitable

An expectation is a collection of attributes represening an expected method call. The attributes define:



(c) Agical AB 2005

Author:
joakim.ohlrogge

Method Summary
 Action getAction()
           
 Expression[] getArguments()
           
 java.lang.String getId()
           
 java.lang.String getMethod()
           
 Multiplicity getMultiplicity()
           
 
Methods inherited from interface com.agical.rmock.core.Visitable
accept, canMatch, isSatisfied
 

Method Detail

getId

java.lang.String getId()
Returns:
The id of the object that is expected to make an invocation

getMethod

java.lang.String getMethod()
Returns:
the method that is expected to be invoked

getMultiplicity

Multiplicity getMultiplicity()
Returns:
how many times this expectation is expeced to be fulfilled.

getArguments

Expression[] getArguments()
Returns:
An expression for each argument that is expected for this method.

getAction

Action getAction()
Returns:
The action that is supposed to be performed as a response to this invocation.


Copyright © 2005-2008 Agical AB. All Rights Reserved.