org.logicalcobwebs.proxool
Class ConnectionResetterTest
java.lang.Object
TestCase
org.logicalcobwebs.proxool.AbstractProxoolTest
org.logicalcobwebs.proxool.ConnectionResetterTest
public class ConnectionResetterTest
- extends AbstractProxoolTest
Test whether the ConnectionResetter
works.
- Since:
- Proxool 0.5
- Version:
- $Revision: 1.15 $, $Date: 2005/10/07 08:12:58 $
- Author:
- Bill Horsman (bill@logicalcobwebs.co.uk), $Author: billhorsman $ (current maintainer)
Field Summary |
private static Log |
LOG
|
Method Summary |
void |
testAutoCommit()
Test whether autoCommit is correctly reset when a connection is
returned to the pool. |
void |
testFailedReset()
Test connectionCount when we deliberately introduce an exception during connection reset. |
void |
testReadOnly()
Test whether autoCommit is correctly reset when a connection is
returned to the pool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Log LOG
ConnectionResetterTest
public ConnectionResetterTest(java.lang.String s)
- See Also:
junit.framework.TestCase#TestCase
testAutoCommit
public void testAutoCommit()
throws java.lang.Exception
- Test whether autoCommit is correctly reset when a connection is
returned to the pool.
- Throws:
java.lang.Exception
testFailedReset
public void testFailedReset()
throws java.lang.Exception
- Test connectionCount when we deliberately introduce an exception during connection reset.
- Throws:
java.lang.Exception
testReadOnly
public void testReadOnly()
throws java.lang.Exception
- Test whether autoCommit is correctly reset when a connection is
returned to the pool.
- Throws:
java.lang.Exception