org.jboss.test.jmx.compliance.timer
Class TimerNotificationTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.test.jmx.compliance.timer.TimerNotificationTestCase
All Implemented Interfaces:
EventListener, javax.management.NotificationListener, junit.framework.Test

public class TimerNotificationTestCase
extends junit.framework.TestCase
implements javax.management.NotificationListener

Timer Notification Tests

Author:
Adrian Brock.

Constructor Summary
TimerNotificationTestCase(String s)
          Construct the test
 
Method Summary
 void handleNotification(javax.management.Notification n, Object ignored)
          Handle the notification, just add it to the list
 void testReasonableValues()
          Test a notification gives reasonable values
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimerNotificationTestCase

public TimerNotificationTestCase(String s)
Construct the test

Method Detail

testReasonableValues

public void testReasonableValues()
Test a notification gives reasonable values


handleNotification

public void handleNotification(javax.management.Notification n,
                               Object ignored)
Handle the notification, just add it to the list

Specified by:
handleNotification in interface javax.management.NotificationListener
Parameters:
n - the notification object
ignored - the handback object given to the broadcaster upon listener registration


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.