test.performance.timer
Class TimerTortureTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.performance.timer.TimerTortureTestCase
All Implemented Interfaces:
EventListener, NotificationListener, junit.framework.Test

public class TimerTortureTestCase
extends junit.framework.TestCase
implements NotificationListener

Timer Performance Tests

Author:
Adrian Brock.

Constructor Summary
TimerTortureTestCase(String s)
          Construct the test
 
Method Summary
 void handleNotification(Notification n, 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 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

TimerTortureTestCase

public TimerTortureTestCase(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 n,
                               Object ignored)
Handle the notification, just add it to the list

Specified by:
handleNotification in interface NotificationListener


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.