|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.reuters.msgtest.fixture.Stimuli
This class represents a collection of Stimulus
messages that will be created as part of the fixture for the test.
It allows type safe access to a list of
Stimulus messages. There is also a time delay that
instructs the testing classes to wait for that amount of
time after sending all of the stimulus messages. The default value
for the delay is 1 second.
RvFixture,
Stimulus| Field Summary | |
protected java.util.List |
stimulusList
|
| Constructor Summary | |
Stimuli()
|
|
| Method Summary | |
void |
addAll(java.util.List list)
|
void |
addStimulus(Stimulus stimulus)
Add a Stimulus to the collection. |
Stimulus |
getStimulus(int i)
Return a Stimulus from the collection. |
Stimulus |
getStimulus(java.lang.String name)
Return a Stimulus from the collection with a given name. |
void |
handleStimulus(Stimulus stimulus)
This method is called from the digester |
java.util.Iterator |
iterator()
|
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List stimulusList
| Constructor Detail |
public Stimuli()
| Method Detail |
public void addStimulus(Stimulus stimulus)
Stimulus to the collection. It is possible to
add two stimulus message with the same name, but this should be
avoided if you want retrieve later by name.
stimulus - a Stimulus valuepublic void handleStimulus(Stimulus stimulus)
public Stimulus getStimulus(int i)
Stimulus from the collection.
i - an int value
Stimulus value
public Stimulus getStimulus(java.lang.String name)
throws RvTestException
Stimulus from the collection with a given name.
It returns the first match if successful and null if no match was found.
name - The name of a Stimulus to retrieve.
RvTestExceptionpublic java.util.Iterator iterator()
public int size()
public void addAll(java.util.List list)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||