|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.jboss.portal.test.core.AbstractHibernateTestCase
Field Summary | |
protected org.hibernate.cfg.Configuration |
cfg
. |
protected org.hibernate.Session |
currentSession
The currently opened session. |
protected org.hibernate.Transaction |
currentTransaction
The currently transaction. |
protected java.lang.String |
dbName
. |
protected org.hibernate.SessionFactory |
factory
. |
protected java.lang.String[] |
mappings
. |
Constructor Summary | |
AbstractHibernateTestCase(java.lang.String name)
|
Method Summary | |
protected void |
beginTransaction()
|
protected void |
closeSession()
|
protected boolean |
commitTransaction()
Try to commit the transaction and return true if the commit was succesful |
protected void |
createConfiguration()
|
protected void |
createSchema()
|
protected void |
createSessionFactory()
|
protected void |
destroyConfiguration()
|
protected void |
destroySchema()
|
protected void |
destroySessionFactory()
|
protected org.hibernate.Session |
getCurrentSession()
|
protected org.hibernate.Session |
openSession()
|
protected boolean |
rollbackTransaction()
Rollback the transaction and return true if the rollback was succesful |
void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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 |
protected java.lang.String[] mappings
protected java.lang.String dbName
protected org.hibernate.cfg.Configuration cfg
protected org.hibernate.SessionFactory factory
protected org.hibernate.Session currentSession
protected org.hibernate.Transaction currentTransaction
Constructor Detail |
public AbstractHibernateTestCase(java.lang.String name)
Method Detail |
protected void createConfiguration()
protected void createSessionFactory()
protected void createSchema()
protected void destroySchema()
protected void destroySessionFactory()
protected void destroyConfiguration()
public void setUp() throws java.lang.Exception
java.lang.Exception
protected void tearDown() throws java.lang.Exception
java.lang.Exception
protected void beginTransaction()
protected boolean commitTransaction()
protected boolean rollbackTransaction()
protected void closeSession()
protected org.hibernate.Session getCurrentSession()
protected org.hibernate.Session openSession()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |