|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.logicalcobwebs.proxool.AbstractProxoolTest
org.logicalcobwebs.proxool.HibernateTest
Tests that we are able to get a connection from Hibernate. (Code contributed by Mark Eagle)
| Field Summary | |
private static Log |
LOG
|
| Fields inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest |
|
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
HibernateTest(java.lang.String alias)
|
|
| Method Summary | |
void |
testDirectHibernateConnection()
Can we get a connection from a Proxool pool that we have already registered? We ask Hibernate to lookup the pool by its alias. |
void |
testHibernateConfiguredConnection()
Can we get a connection from a pool configured by Hibernate |
void |
testSimpleHibernateConnection()
Can we get a connection straight from Hibernate? We register the pool first and theb ask for Hibernate for it. |
| Methods inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest |
setUp, tearDown |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final Log LOG
| Constructor Detail |
public HibernateTest(java.lang.String alias)
| Method Detail |
public void testSimpleHibernateConnection()
throws HibernateException,
ProxoolException
ProxoolException - if there was a Proxool problem
HibernateException - if there was a Hibernate problem
public void testDirectHibernateConnection()
throws HibernateException,
ProxoolException
ProxoolException - if there was a Proxool problem
HibernateException - if there was a Hibernate problem
public void testHibernateConfiguredConnection()
throws HibernateException,
ProxoolException
ProxoolException - if there was a Proxool problem
HibernateException - if there was a Hibernate problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||