test.performance.timer
Class TimerTortureTestCase

java.lang.Object
  extended byTestCase
      extended bytest.performance.timer.TimerTortureTestCase
All Implemented Interfaces:
java.util.EventListener, NotificationListener (src)

public class TimerTortureTestCase
extends TestCase
implements NotificationListener (src)

Timer Performance Tests

See Also:
Serialized Form

Constructor Summary
TimerTortureTestCase(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()
          See how long to do many notifications one notification, this tests the overhead
 void testTortureTen()
          See how long to many notifications one notification, this tests the overhead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerTortureTestCase

public TimerTortureTestCase(java.lang.String s)
Construct the test

Method Detail

testTortureOne

public void testTortureOne()
See how long to do many notifications one notification, this tests the overhead


testTortureTen

public void testTortureTen()
See how long to many notifications one notification, this tests the overhead


handleNotification

public void handleNotification(Notification (src)  n,
                               java.lang.Object ignored)
Handle the notification, just add it to the list

Specified by:
handleNotification in interface NotificationListener (src)
Parameters:
n - the notification object
ignored - the handback object given to the broadcaster upon listener registration