org.hibernate.envers.test
Class AbstractSessionTest

java.lang.Object
  extended by org.hibernate.envers.test.AbstractEnversTest
      extended by org.hibernate.envers.test.AbstractSessionTest
Direct Known Subclasses:
AbstractCollectionChangeTest, AddDelTest, EntityNamesTest, EvictAuditDataAfterCommitTest, PropertiesGroupTest, QueryingWithProxyObjectTest

public abstract class AbstractSessionTest
extends AbstractEnversTest

Base class for testing envers with Session.


Field Summary
protected  Configuration config
           
 
Constructor Summary
AbstractSessionTest()
           
 
Method Summary
 void closeSessionFactory()
           
protected  AuditReader getAuditReader()
           
protected  Configuration getCfg()
           
protected  String getHibernateConfigurationFileName()
           
protected  Session getSession()
           
 void init()
           
protected abstract  void initMappings()
           
 void newSessionFactory()
           
 
Methods inherited from class org.hibernate.envers.test.AbstractEnversTest
data, getAuditStrategy, setTestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected Configuration config
Constructor Detail

AbstractSessionTest

public AbstractSessionTest()
Method Detail

init

public void init()
          throws URISyntaxException
Throws:
URISyntaxException

initMappings

protected abstract void initMappings()
                              throws MappingException,
                                     URISyntaxException
Throws:
MappingException
URISyntaxException

getHibernateConfigurationFileName

protected String getHibernateConfigurationFileName()

newSessionFactory

public void newSessionFactory()

closeSessionFactory

public void closeSessionFactory()

getSession

protected Session getSession()

getCfg

protected Configuration getCfg()

getAuditReader

protected AuditReader getAuditReader()


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.