org.logicalcobwebs.proxool.admin.jmx
Class MultipleAgentsConnectionPoolMBeanTest

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.MultipleAgentsConnectionPoolMBeanTest

public class MultipleAgentsConnectionPoolMBeanTest
extends AbstractJMXTest

Test ConnectionPoolMBean when JMX is configured for multiple agents.

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

Field Summary
private static java.lang.String AGENT1_DOMAIN
           
private static java.lang.String AGENT2_DOMAIN
           
private  javax.management.MBeanServer mBeanServer1
           
private  java.lang.String mBeanServer1Id
           
private  javax.management.MBeanServer mBeanServer2
           
private  java.lang.String mBeanServer2Id
           
 
Constructor Summary
MultipleAgentsConnectionPoolMBeanTest(java.lang.String s)
           
 
Method Summary
private  java.util.Properties createMutipleAgentBasicPool(java.lang.String alias)
           
protected  void setUp()
          Calls AbstractProxoolTest.setUp()
protected  void tearDown()
          Calls AbstractProxoolTest.tearDown()
 void testMultipleAgents()
          Test that pools can be regisered for multiple agents.
 
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

AGENT1_DOMAIN

private static final java.lang.String AGENT1_DOMAIN
See Also:
Constant Field Values

AGENT2_DOMAIN

private static final java.lang.String AGENT2_DOMAIN
See Also:
Constant Field Values

mBeanServer1

private javax.management.MBeanServer mBeanServer1

mBeanServer2

private javax.management.MBeanServer mBeanServer2

mBeanServer1Id

private java.lang.String mBeanServer1Id

mBeanServer2Id

private java.lang.String mBeanServer2Id
Constructor Detail

MultipleAgentsConnectionPoolMBeanTest

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

testMultipleAgents

public void testMultipleAgents()
                        throws java.lang.Exception
Test that pools can be regisered for multiple agents.

Throws:
java.lang.Exception - if the test fails in an unexpected way.

createMutipleAgentBasicPool

private java.util.Properties createMutipleAgentBasicPool(java.lang.String alias)
                                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

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