|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.modeljunit.AbstractListener nz.ac.waikato.modeljunit.VerboseListener
public class VerboseListener
An implementation of ModelListener that prints
event messages to the Model's getOutput()
stream.
Field Summary |
---|
Fields inherited from class nz.ac.waikato.modeljunit.AbstractListener |
---|
model_ |
Constructor Summary | |
---|---|
VerboseListener()
|
|
VerboseListener(Model model)
Deprecated. Use the null constructor instead. |
Method Summary | |
---|---|
void |
doneReset(java.lang.String reason,
boolean testing)
The Model calls this after each reset(boolean) action. |
void |
doneTransition(int action,
Transition tr)
The Model calls this after taking each transition. |
void |
failure(TestFailureException ex)
The Model calls this when an action has found an error. |
java.lang.String |
getName()
Get the short name that this listener is known by. |
Methods inherited from class nz.ac.waikato.modeljunit.AbstractListener |
---|
doneGuard, getModel, setModel, startAction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerboseListener()
public VerboseListener(Model model)
Method Detail |
---|
public java.lang.String getName()
ModelListener
public void doneReset(java.lang.String reason, boolean testing)
ModelListener
doneReset
in interface ModelListener
doneReset
in class AbstractListener
reason
- An adjective that describe why the reset was done.testing
- The parameter that was passed to the FsmModel reset call.public void doneTransition(int action, Transition tr)
ModelListener
doneTransition
in interface ModelListener
doneTransition
in class AbstractListener
action
- The number of the action just taken.tr
- The transition just taken.public void failure(TestFailureException ex)
ModelListener
failure
in interface ModelListener
failure
in class AbstractListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |