|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.test.RegressionTestMonitor
public class RegressionTestMonitor
Application of MachineMonitor to perform basic regression testing. Compares events received from a system under test to reference event sequence. An inconsistency results in the test being aborted. Doesn't handle non-determinism between reference run and actual run. See putEvent() for more detail.
Constructor Summary | |
---|---|
RegressionTestMonitor(java.lang.Thread machineRunThread,
long timeoutDurationSec,
long jitterDurationMsec,
java.lang.String referenceFilePath,
java.lang.String actualFilePath)
|
|
RegressionTestMonitor(java.lang.Thread machineRunThread,
long timeoutDurationSec,
long jitterDurationMsec,
java.lang.String referenceFilePath,
java.lang.String actualFilePath,
MachineMonitorEventFilter filter)
Timeout represents max duration between event arrivals or, in case of first event, max duration waiting for first event. |
Method Summary | |
---|---|
void |
dismiss()
Stop any timer countdown in progress (because test is over). |
MachineMonitorEventFilter |
getEventFilter()
|
void |
putEvent(MachineMonitorEvent actualEvent)
When event arrives from system under test, stop the watchdog timer, log event (in string format) and compare event with next event from reference events. |
void |
setEventFilter(MachineMonitorEventFilter filter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegressionTestMonitor(java.lang.Thread machineRunThread, long timeoutDurationSec, long jitterDurationMsec, java.lang.String referenceFilePath, java.lang.String actualFilePath, MachineMonitorEventFilter filter) throws java.lang.Exception
java.lang.Exception
public RegressionTestMonitor(java.lang.Thread machineRunThread, long timeoutDurationSec, long jitterDurationMsec, java.lang.String referenceFilePath, java.lang.String actualFilePath) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void putEvent(MachineMonitorEvent actualEvent) throws java.lang.Exception
putEvent
in interface MachineMonitor
java.lang.Exception
public void dismiss()
public void setEventFilter(MachineMonitorEventFilter filter)
setEventFilter
in interface MachineMonitor
public MachineMonitorEventFilter getEventFilter()
getEventFilter
in interface MachineMonitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |