Constructor and Description |
---|
HistoryTest(String name)
Creates a new
HistoryTest instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp()
Save the old idle and close times.
|
void |
store(String id,
List incidents)
Our test storage just saves the last received ID and list of incidents.
|
protected void |
tearDown()
Restore the old idle and close times.
|
void |
testIdleHistory()
Test if an idle history is committed when a stop incident is late.
|
void |
testIllegalIncidents() |
void |
testLifecycle()
Test a normal, well-behaved lifecylce of (incident, incident, stop) with no
idle times.
|
void |
testPostCloseIncidents()
Test arrival and recording of incidents after the stop incident.
|
void |
testPostCommitActivityStop()
Test if an idle history is committed and the stop incident arrives in time to
be recorded.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public HistoryTest(String name)
HistoryTest
instance.name
- Case name.protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
- if an error occurs.protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
- if an error occurs.public void testIllegalIncidents()
public void testLifecycle()
public void testPostCloseIncidents()
public void testIdleHistory()
public void testPostCommitActivityStop()
Copyright © 1999–2017 Apache OODT. All rights reserved.