org.logicalcobwebs.proxool.configuration
Class AvalonConfiguratorTest

java.lang.Object
  extended by TestCase
      extended by org.logicalcobwebs.proxool.AbstractProxoolTest
          extended by org.logicalcobwebs.proxool.configuration.AvalonConfiguratorTest

public class AvalonConfiguratorTest
extends AbstractProxoolTest

Tests that the AvalonConfgiuration works.

Since:
Proxool 0.6
Version:
$Revision: 1.10 $, $Date: 2003/03/04 10:58:45 $
Author:
Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)

Field Summary
private  ExcaliburComponentManager componentManager
           
 
Constructor Summary
AvalonConfiguratorTest(java.lang.String name)
           
 
Method Summary
private  void initializeAvalon(java.lang.String roleFile, java.lang.String componentFile)
           
 void testDisposeOnClose()
          Test that a configurator that does not have close-on-dispose="false" closes the pools it has configured when it is disposed.
 void testNoNamspaces()
          Test that the configuration succeds and that all expected properties has been received by Proxool.
 void testNotDisposeOnClose()
          Test that a configurator that does have close-on-dispose="false" does not close the pools it has configured when it is disposed.
 void testWithNamespaces()
          Test that the configuration succeds and that all expected properties has been received by Proxool.
 
Methods inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest
setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentManager

private ExcaliburComponentManager componentManager
Constructor Detail

AvalonConfiguratorTest

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

testNoNamspaces

public void testNoNamspaces()
                     throws java.lang.Exception
Test that the configuration succeds and that all expected properties has been received by Proxool. The configuration file does not use namspaces.

Throws:
org.apache.avalon.framework.component.ComponentException - if the configuration fails.
java.sql.SQLException - if ProxoolFacade operation fails.
java.lang.Exception

testWithNamespaces

public void testWithNamespaces()
                        throws java.lang.Exception
Test that the configuration succeds and that all expected properties has been received by Proxool. The configuration file uses namspaces.

Throws:
java.lang.Exception - if the test is interrupted.

testDisposeOnClose

public void testDisposeOnClose()
                        throws java.lang.Exception
Test that a configurator that does not have close-on-dispose="false" closes the pools it has configured when it is disposed.

Throws:
java.lang.Exception - if the test is interrupted.

testNotDisposeOnClose

public void testNotDisposeOnClose()
                           throws java.lang.Exception
Test that a configurator that does have close-on-dispose="false" does not close the pools it has configured when it is disposed.

Throws:
java.lang.Exception - if the test is interrupted.

initializeAvalon

private void initializeAvalon(java.lang.String roleFile,
                              java.lang.String componentFile)
                       throws java.lang.Exception
Throws:
java.lang.Exception