org.logicalcobwebs.proxool
Class UpdateDefinitionTest
java.lang.Object
TestCase
org.logicalcobwebs.proxool.AbstractProxoolTest
org.logicalcobwebs.proxool.UpdateDefinitionTest
public class UpdateDefinitionTest
- extends AbstractProxoolTest
Test that we can update the definition of a pool
- Since:
- Proxool 0.8
- Version:
- $Revision: 1.8 $, $Date: 2005/09/25 21:48:09 $
- Author:
- bill, $Author: billhorsman $ (current maintainer)
Field Summary |
private static Log |
LOG
|
Method Summary |
void |
testChangeUrl()
Can we change the delegate URL of a pool |
void |
testDefinitionNotChanging()
If we request a connection using exactly the same URL and properties check that it doesn't trigger an update
which forces the pool to be restarted (all existing connections destroyed). |
void |
testUpdate()
Can we update a pool definition by passing a new Properties object? |
void |
testUpdateUsingAPI()
Can we update a pool definition by calling updateConnectionPool? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Log LOG
UpdateDefinitionTest
public UpdateDefinitionTest(java.lang.String alias)
testChangeUrl
public void testChangeUrl()
throws java.lang.Exception
- Can we change the delegate URL of a pool
- Throws:
java.lang.Exception
testUpdate
public void testUpdate()
throws java.lang.Exception,
java.lang.ClassNotFoundException
- Can we update a pool definition by passing a new Properties object?
- Throws:
java.lang.Exception
java.lang.ClassNotFoundException
testDefinitionNotChanging
public void testDefinitionNotChanging()
throws java.sql.SQLException,
ProxoolException
- If we request a connection using exactly the same URL and properties check that it doesn't trigger an update
which forces the pool to be restarted (all existing connections destroyed).
- Throws:
java.sql.SQLException
ProxoolException
testUpdateUsingAPI
public void testUpdateUsingAPI()
throws java.lang.Exception,
java.lang.ClassNotFoundException
- Can we update a pool definition by calling updateConnectionPool?
- Throws:
java.lang.Exception
java.lang.ClassNotFoundException