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:
- which class is expected to make the invocation
- which method is expected to be invoked
- how many times this invocation is allowed to happen
- which arguments are expected in the invocation
- which action should be performed as a response to the invocation
(c) Agical AB 2005
- Author:
- joakim.ohlrogge
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-2009 Agical AB. All Rights Reserved.