jhomenet.test.hibernate
Class HibernateTest

java.lang.Object
  extended by junit.framework.TestCase
      extended by jhomenet.test.hibernate.HibernateTest
Direct Known Subclasses:
TestCaseWithData

public abstract class HibernateTest
extends junit.framework.TestCase


Field Summary
protected  DAOFactory DAOFACTORY
           
protected  boolean rollback
           
protected  SessionFactory sessionFactory
           
protected  boolean wrapInTransaction
           
 
Constructor Summary
HibernateTest()
           
 
Method Summary
protected  Session disconnectContext()
           
 void inTransaction()
          Executes inside the transaction.
protected  void reconnectContext(Session s)
           
protected  void runTest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAOFACTORY

protected final DAOFactory DAOFACTORY

sessionFactory

protected SessionFactory sessionFactory

wrapInTransaction

protected boolean wrapInTransaction

rollback

protected boolean rollback
Constructor Detail

HibernateTest

public HibernateTest()
Method Detail

runTest

protected void runTest()
                throws java.lang.Throwable
Throws:
java.lang.Throwable

disconnectContext

protected Session disconnectContext()

reconnectContext

protected void reconnectContext(Session s)

inTransaction

public void inTransaction()
Executes inside the transaction.

Override this method to execute extra operations, such as test data import.



Copyright © 2004-2005 David Irwin. All Rights Reserved.