|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TestCase org.logicalcobwebs.proxool.AbstractProxoolTest org.logicalcobwebs.proxool.WrapperTest
public class WrapperTest
Tests whether we are wrapping up connections correctly. There disposable wrappers stop the user doing nasty things to the connection after it has been closed.
Field Summary | |
---|---|
private static Log |
LOG
|
Constructor Summary | |
---|---|
WrapperTest(java.lang.String alias)
|
Method Summary | |
---|---|
void |
testAlias()
Check whether ProxoolFacade.getAlias(java.sql.Connection) returns
sensible values |
void |
testCreateStatementAfterClose()
Check that calling createStatement after a connection has been closed throws an exception |
void |
testDoubleClose()
Check that nothing bad happens if you close a connection twice |
void |
testDoubleConnection()
Check that closing a connection twice can't close the same connection for the next user |
void |
testEquals()
Check tha equals() works right |
void |
testHashCode()
Check that isClosed() returns true after we have closed a connection |
void |
testId()
Check whether ProxoolFacade.getId(java.sql.Connection) returns
sensible values |
void |
testIsClosedAfterClose()
Check that isClosed() returns true after we have closed a connection |
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 |
---|
private static final Log LOG
Constructor Detail |
---|
public WrapperTest(java.lang.String alias)
AbstractProxoolTest
Method Detail |
---|
public void testDoubleConnection() throws java.lang.Exception
java.lang.Exception
public void testDoubleClose() throws java.sql.SQLException, ProxoolException
java.sql.SQLException
- if anything goes wrong
ProxoolException
- if anything goes wrongpublic void testCreateStatementAfterClose() throws java.sql.SQLException, ProxoolException
java.sql.SQLException
- if anything goes wrong
ProxoolException
- if anything goes wrongpublic void testIsClosedAfterClose() throws java.sql.SQLException, ProxoolException
java.sql.SQLException
- if anything goes wrong
ProxoolException
- if anything goes wrongpublic void testHashCode() throws java.sql.SQLException, ProxoolException
java.sql.SQLException
- if anything goes wrong
ProxoolException
- if anything goes wrongpublic void testEquals() throws java.sql.SQLException, ProxoolException
java.sql.SQLException
- if anything goes wrong
ProxoolException
- if anything goes wrongpublic void testId() throws ProxoolException, java.sql.SQLException
ProxoolFacade.getId(java.sql.Connection)
returns
sensible values
ProxoolException
- if anything goes wrong
java.sql.SQLException
- if anything goes wrongpublic void testAlias() throws ProxoolException, java.sql.SQLException
ProxoolFacade.getAlias(java.sql.Connection)
returns
sensible values
ProxoolException
- if anything goes wrong
java.sql.SQLException
- if anything goes wrong
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |