org.jboss.test.jmx.compliance.relation
Class MBeanServerNotificationFilterTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.test.jmx.compliance.relation.MBeanServerNotificationFilterTestCase
All Implemented Interfaces:
junit.framework.Test

public class MBeanServerNotificationFilterTestCase
extends junit.framework.TestCase

MBean Server Notification Filter tests.

Test it to death.

NOTE: The tests use String literals to ensure the comparisons are not performed on object references.

WARNING!! WARNING!! The spec says the MBeanServerNotificationFilter accepts everything by default. The RI does exactly the opposite.

Author:
Adrian Brock.

Constructor Summary
MBeanServerNotificationFilterTestCase(String s)
          Construct the test
 
Method Summary
 void testDefault()
          By default all names are enabled.
 void testDisableAll()
          Disable all
 void testDisableOne()
          Disable one
 void testEnableAll()
          Enable all
 void testEnableOne()
          Enable one
 void testGetters()
          Test getters
 void testSerialization()
          Test serialization.
 
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

MBeanServerNotificationFilterTestCase

public MBeanServerNotificationFilterTestCase(String s)
Construct the test

Method Detail

testDefault

public void testDefault()
By default all names are enabled.


testEnableAll

public void testEnableAll()
Enable all


testEnableOne

public void testEnableOne()
Enable one


testDisableAll

public void testDisableAll()
Disable all


testDisableOne

public void testDisableOne()
Disable one


testGetters

public void testGetters()
Test getters


testSerialization

public void testSerialization()
Test serialization.



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