T - The event typepublic abstract class TestDriver<T extends Event,C>
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_completedTraces
The number of sequences in the test suite that the driver has
completed so far
|
protected int |
m_executedEvents
The number of events the driver has executed so far
|
protected TestHook<T,C> |
m_hook
The hook that the driver will call during the tests
|
| Constructor and Description |
|---|
TestDriver()
Creates a new empty test driver
|
| Modifier and Type | Method and Description |
|---|---|
abstract C |
execute(T event)
Tells the driver that the hook produced an event
|
int |
getNumCompletedTraces()
Gets the number of traces that have been fully executed by
the driver so far
|
int |
getNumExecutedEvents()
Gets the total number of events that have been executed by
the driver so far
|
void |
reset()
Resets the test driver
|
void |
setHook(TestHook<T,C> hook)
Sets the hook that the driver will call during the tests
|
abstract void |
stop()
Tells the driver to stop testing
|
protected TestHook<T extends Event,C> m_hook
protected int m_executedEvents
protected int m_completedTraces
public void reset()
public void setHook(TestHook<T,C> hook)
hook - The hookpublic int getNumCompletedTraces()
public int getNumExecutedEvents()
public abstract void stop()
Copyright © Sylvain HallĂ©. All Rights Reserved.