org.logicalcobwebs.proxool.admin.jmx
Class ConnectionPoolMBeanTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.logicalcobwebs.proxool.AbstractProxoolTest
              extended byorg.logicalcobwebs.proxool.admin.jmx.AbstractJMXTest
                  extended byorg.logicalcobwebs.proxool.admin.jmx.ConnectionPoolMBeanTest
All Implemented Interfaces:
junit.framework.Test

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  MBeanServer mBeanServer
           
private  boolean notified
           
 
Fields inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConnectionPoolMBeanTest(java.lang.String s)
           
 
Method Summary
private  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 junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mBeanServer

private MBeanServer mBeanServer

notified

private boolean notified
Constructor Detail

ConnectionPoolMBeanTest

public ConnectionPoolMBeanTest(java.lang.String s)
See Also:
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 NotificationFilter getFilter()

setUp

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

Overrides:
setUp in class AbstractProxoolTest
Throws:
java.lang.Exception
See Also:
TestCase.setUp()

tearDown

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

Overrides:
tearDown in class AbstractProxoolTest
Throws:
java.lang.Exception
See Also:
TestCase.setUp()