|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
test.stress.timer.TimerTestCase
public class TimerTestCase
Timer Stress Tests This test works by starting a lot of notifications at the start and checks the concurrency by performing lots of operations.
It then waits for the slow notifications to complete allowing any lag due to slower computers to be caught up with.
Any concurrency problem or dropped notifications should show up when the test times out and the target notifications are not reached.
Constructor Summary | |
---|---|
TimerTestCase(String s)
Construct the test |
Method Summary | |
---|---|
void |
handleNotification(Notification n,
Object ignored)
Handle the notification, just add it to the list |
void |
testTortureOne()
Test the timer under stress conditions |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimerTestCase(String s)
Method Detail |
---|
public void testTortureOne() throws Exception
Exception
public void handleNotification(Notification n, Object ignored)
handleNotification
in interface NotificationListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |