T - The event typepublic class UnidirectionalTestDriver<T extends Event,C> extends TestDriver<T,C>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_done
Whether the driver is done playing back all traces
|
protected java.util.Iterator<T> |
m_eventIterator
An iterator over the events of a trace
|
protected java.util.List<Trace<T>> |
m_testSuite
The test suite that the driver will replay.
|
protected java.util.Iterator<Trace<T>> |
m_traceIterator
An iterator over the traces of the test suite
|
m_completedTraces, m_executedEvents, m_hook| Constructor and Description |
|---|
UnidirectionalTestDriver()
Creates a new driver
|
UnidirectionalTestDriver(java.util.Collection<Trace<T>> suite)
Creates a new driver, and gives it a set of traces to play back
to its hook
|
| Modifier and Type | Method and Description |
|---|---|
C |
execute(T event)
Tells the driver that the hook produced an event
|
void |
reset()
Resets the test driver
|
void |
run() |
void |
setTestSuite(java.util.Collection<Trace<T>> suite)
Sets the test suite that the driver will replay
|
void |
stop()
Tells the driver to stop testing
|
getNumCompletedTraces, getNumExecutedEvents, setHookprotected java.util.List<Trace<T extends Event>> m_testSuite
protected java.util.Iterator<Trace<T extends Event>> m_traceIterator
protected java.util.Iterator<T extends Event> m_eventIterator
protected boolean m_done
public UnidirectionalTestDriver()
public UnidirectionalTestDriver(java.util.Collection<Trace<T>> suite)
suite - The set of sequences. If the collection passed to this
constructor is ordered (such as a list), the driver will play the
traces in the order they appear in this collection.public void reset()
TestDriverreset in class TestDriver<T extends Event,C>public void setTestSuite(java.util.Collection<Trace<T>> suite)
suite - The test suitepublic void run()
public void stop()
TestDriverstop in class TestDriver<T extends Event,C>public final C execute(T event)
TestDriverexecute in class TestDriver<T extends Event,C>event - The eventCopyright © Sylvain HallĂ©. All Rights Reserved.