org.logicalcobwebs.proxool.configuration
Class AvalonConfiguratorTest
java.lang.Object
TestCase
org.logicalcobwebs.proxool.AbstractProxoolTest
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)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
componentManager
private ExcaliburComponentManager componentManager
AvalonConfiguratorTest
public AvalonConfiguratorTest(java.lang.String name)
- See Also:
junit.framework.TestCase#TestCase
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