|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.agical.rmock.core.expectation.InvocationExpectationVisitor
public class InvocationExpectationVisitor
Finds a matching expectation and returns its action. If no match is found, null is returned. (c) Agical AB 2005
Constructor Summary | |
---|---|
InvocationExpectationVisitor(java.lang.String id,
java.lang.String method,
java.lang.Object[] arguments)
|
Method Summary | |
---|---|
void |
enteredSection(Section section)
Called when a section is entered |
void |
exitedSection()
called when the current section has exited. |
Action |
getMatchedAction()
|
boolean |
visit(Expectation expectation,
boolean available)
Visits expectations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvocationExpectationVisitor(java.lang.String id, java.lang.String method, java.lang.Object[] arguments)
id
- the id of the calling objectmethod
- the name of the method to be calledarguments
- the arguments of theMethod Detail |
---|
public boolean visit(Expectation expectation, boolean available)
ExpectationVisitor
visit
in interface ExpectationVisitor
expectation
- the expectation to visitavailable
- true if this expectation is considered to be available by the surrounding
section.
ExpectationVisitor.visit(Expectation, boolean)
public Action getMatchedAction()
public void enteredSection(Section section)
ExpectationVisitor
enteredSection
in interface ExpectationVisitor
public void exitedSection()
ExpectationVisitor
exitedSection
in interface ExpectationVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |