org.jboss.test.jmx.compliance.server
Class MBeanServerInvocationHandlerTestCase

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

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

Tests the MBeanServerInvocationHandler

Author:
Adrian Brock.

Constructor Summary
MBeanServerInvocationHandlerTestCase(String s)
          Construct the test
 
Method Summary
 void handleNotification(javax.management.Notification notification, Object handback)
          Callback method from the broadcaster MBean this listener implementation is registered to.
 void testConstructor()
           
 void testEquals()
           
 void testEqualsFailsWhenNotExposed()
           
 void testGetNotificationInfo()
           
 void testGetter()
           
 void testGetterPrimitiveBoolean()
           
 void testGetterTypeBoolean()
           
 void testHashCode()
           
 void testHashCodeFailsWhenNotExposed()
           
 void testInvoke()
           
 void testInvokeMixedParameters()
           
 void testInvokeNoArgs()
           
 void testInvokeNoArgsNoReturn()
           
 void testNotificationEmitterAdd()
           
 void testNotificationEmitterRemove()
           
 void testNotificationEmitterRemoveTriplet()
           
 void testNotificationEmitterRemoveTripletFailsOnBroadcaster()
           
 void testSetter()
           
 void testSetterPrimitiveBoolean()
           
 void testSetterTypeBoolean()
           
 void testToString()
           
 void testToStringFailsWhenNotExposed()
           
 
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

MBeanServerInvocationHandlerTestCase

public MBeanServerInvocationHandlerTestCase(String s)
Construct the test

Method Detail

testConstructor

public void testConstructor()
                     throws Exception
Throws:
Exception

testGetter

public void testGetter()
                throws Exception
Throws:
Exception

testSetter

public void testSetter()
                throws Exception
Throws:
Exception

testGetterPrimitiveBoolean

public void testGetterPrimitiveBoolean()
                                throws Exception
Throws:
Exception

testSetterPrimitiveBoolean

public void testSetterPrimitiveBoolean()
                                throws Exception
Throws:
Exception

testGetterTypeBoolean

public void testGetterTypeBoolean()
                           throws Exception
Throws:
Exception

testSetterTypeBoolean

public void testSetterTypeBoolean()
                           throws Exception
Throws:
Exception

testInvokeNoArgsNoReturn

public void testInvokeNoArgsNoReturn()
                              throws Exception
Throws:
Exception

testInvokeNoArgs

public void testInvokeNoArgs()
                      throws Exception
Throws:
Exception

testInvoke

public void testInvoke()
                throws Exception
Throws:
Exception

testInvokeMixedParameters

public void testInvokeMixedParameters()
                               throws Exception
Throws:
Exception

testNotificationEmitterAdd

public void testNotificationEmitterAdd()
                                throws Exception
Throws:
Exception

testNotificationEmitterRemove

public void testNotificationEmitterRemove()
                                   throws Exception
Throws:
Exception

testNotificationEmitterRemoveTriplet

public void testNotificationEmitterRemoveTriplet()
                                          throws Exception
Throws:
Exception

testNotificationEmitterRemoveTripletFailsOnBroadcaster

public void testNotificationEmitterRemoveTripletFailsOnBroadcaster()
                                                            throws Exception
Throws:
Exception

testGetNotificationInfo

public void testGetNotificationInfo()
                             throws Exception
Throws:
Exception

testToString

public void testToString()
                  throws Exception
Throws:
Exception

testToStringFailsWhenNotExposed

public void testToStringFailsWhenNotExposed()
                                     throws Exception
Throws:
Exception

testEquals

public void testEquals()
                throws Exception
Throws:
Exception

testEqualsFailsWhenNotExposed

public void testEqualsFailsWhenNotExposed()
                                   throws Exception
Throws:
Exception

testHashCode

public void testHashCode()
                  throws Exception
Throws:
Exception

testHashCodeFailsWhenNotExposed

public void testHashCodeFailsWhenNotExposed()
                                     throws Exception
Throws:
Exception

handleNotification

public void handleNotification(javax.management.Notification notification,
                               Object handback)
Description copied from interface: javax.management.NotificationListener
Callback method from the broadcaster MBean this listener implementation is registered to.

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


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