org.logicalcobwebs.proxool.admin.jmx
Class ConnectionPoolMBeanTest

java.lang.Object
  extended by TestCase
      extended by org.logicalcobwebs.proxool.AbstractProxoolTest
          extended by org.logicalcobwebs.proxool.admin.jmx.AbstractJMXTest
              extended by org.logicalcobwebs.proxool.admin.jmx.ConnectionPoolMBeanTest

public class ConnectionPoolMBeanTest
extends AbstractJMXTest

Test ConnectionPoolMBean.

Since:
Proxool 0.8
Version:
$Revision: 1.10 $, $Date: 2003/10/20 07:40:44 $
Author:
Christian Nedregaard (christian_nedregaard@email.com), $Author: chr32 $ (current maintainer)

Nested Class Summary
private  class ConnectionPoolMBeanTest.TestNotificationListener
           
 
Field Summary
private  javax.management.MBeanServer mBeanServer
           
private  boolean notified
           
 
Constructor Summary
ConnectionPoolMBeanTest(java.lang.String s)
           
 
Method Summary
private  javax.management.NotificationFilter getFilter()
           
protected  void setUp()
          Calls AbstractProxoolTest.setUp()
protected  void tearDown()
          Calls AbstractProxoolTest.tearDown()
 void testGetAttribute()
          Test that an attribute can be fetched from the MBean.
 void testGetAttributes()
          Test that a list attributes can be fetched from the MBean.
 void testInvokeShutown()
           
 void testNotification()
           
 void testSetAttribute()
          Test that an attribute can be fetched from the MBean.
 void testSetAttributes()
           
 
Methods inherited from class org.logicalcobwebs.proxool.admin.jmx.AbstractJMXTest
createBasicPool, createBasicProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mBeanServer

private javax.management.MBeanServer mBeanServer

notified

private boolean notified
Constructor Detail

ConnectionPoolMBeanTest

public ConnectionPoolMBeanTest(java.lang.String s)
See Also:
junit.framework.TestCase#TestCase(java.lang.String)
Method Detail

testGetAttribute

public void testGetAttribute()
                      throws java.lang.Exception
Test that an attribute can be fetched from the MBean.

Throws:
java.lang.Exception - if an error occours.

testGetAttributes

public void testGetAttributes()
                       throws java.lang.Exception
Test that a list attributes can be fetched from the MBean.

Throws:
java.lang.Exception - if an error occours.

testSetAttribute

public void testSetAttribute()
                      throws java.lang.Exception
Test that an attribute can be fetched from the MBean.

Throws:
java.lang.Exception - if an error occours.

testSetAttributes

public void testSetAttributes()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testInvokeShutown

public void testInvokeShutown()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testNotification

public void testNotification()
                      throws java.lang.Exception
Throws:
java.lang.Exception

getFilter

private javax.management.NotificationFilter getFilter()

setUp

protected void setUp()
              throws java.lang.Exception
Calls AbstractProxoolTest.setUp()

Overrides:
setUp in class AbstractProxoolTest
Throws:
java.lang.Exception
See Also:
junit.framework.TestCase#setUp

tearDown

protected void tearDown()
                 throws java.lang.Exception
Calls AbstractProxoolTest.tearDown()

Overrides:
tearDown in class AbstractProxoolTest
Throws:
java.lang.Exception
See Also:
junit.framework.TestCase#setUp