|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TestCase test.stress.timer.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(java.lang.String s)
Construct the test |
Method Summary | |
void |
handleNotification(Notification (src) n,
java.lang.Object ignored)
Handle the notification, just add it to the list |
void |
testTortureOne()
Test the timer under stress conditions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimerTestCase(java.lang.String s)
Method Detail |
public void testTortureOne() throws java.lang.Exception
java.lang.Exception
public void handleNotification(Notification (src) n, java.lang.Object ignored)
handleNotification
in interface NotificationListener (src)
n
- the notification objectignored
- the handback object given to the broadcaster
upon listener registration
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |