org.logicalcobwebs.proxool
Class ConnectionResetterTest

java.lang.Object
  extended by TestCase
      extended by org.logicalcobwebs.proxool.AbstractProxoolTest
          extended by 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
           
 
Constructor Summary
ConnectionResetterTest(java.lang.String s)
           
 
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 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

LOG

private static final Log LOG
Constructor Detail

ConnectionResetterTest

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

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