fri.util.database.jpa.tree.hibernatesession.tests
Class TemporalClosureTableTreeHibernateSessionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by fri.util.database.jpa.commons.AbstractJpaTest
              extended by fri.util.database.jpa.tree.AbstractTreeTest<D,N>
                  extended by fri.util.database.jpa.tree.AbstractTemporalTreeTest<TemporalClosureTableTreeDao,ClosureTableTreeNode>
                      extended by fri.util.database.jpa.tree.closuretable.TemporalClosureTableTreeTest
                          extended by fri.util.database.jpa.tree.hibernatesession.tests.TemporalClosureTableTreeHibernateSessionTest
All Implemented Interfaces:
junit.framework.Test

public class TemporalClosureTableTreeHibernateSessionTest
extends TemporalClosureTableTreeTest


Field Summary
 
Fields inherited from class fri.util.database.jpa.tree.AbstractTreeTest
COPIED_NAME_PREFIX, UNIQUE_PROPERTY_NAMES
 
Fields inherited from class fri.util.database.jpa.commons.AbstractJpaTest
ECLIPSELINK_PERSISTENCE_UNIT_NAME, HIBERNATE_PERSISTENCE_UNIT_NAME
 
Constructor Summary
TemporalClosureTableTreeHibernateSessionTest()
           
 
Method Summary
protected  void commitDbTransaction(java.lang.String message)
           
protected  DbSession newDbSession(java.lang.String message)
           
protected  void rollbackDbTransaction(java.lang.String message)
           
protected  void setUp()
           
protected  void tearDown()
          Overridden to perform a different cleanup, else data would remain in database.
 
Methods inherited from class fri.util.database.jpa.tree.closuretable.TemporalClosureTableTreeTest
checkTreeIntegrity, getName, newDao, newTreePojo, newUniqueChildrenTreeConstraintImpl, newUniqueChildrenTreeConstraintImplWithoutRoots, newUniqueWholeTreeConstraintImpl, newUniqueWholeTreeConstraintImplWithoutRoots, renameBeforeCopy, setNameNotConstraintChecking, testGetTreePathEntity
 
Methods inherited from class fri.util.database.jpa.tree.AbstractTemporalTreeTest
getTemporalDao, testDatabaseToBeCaseSensitive, testFindChildrenInFullTree, testFindRemoved, testRemoveHistoricizedTreesPhysically, testRemoveRootPhysically, testRemoveSubTreePhysically, testUniquenessWithNullValidFrom, testUnremove, testUnremoveAllRoots, testValidFromIsNull
 
Methods inherited from class fri.util.database.jpa.tree.AbstractTreeTest
assertTreeCacheable, beginDbTransaction, createTree, createTree, createTree, findByName, getDao, getFullTreeForIntegrityCheck, isTestCopy, outputTree, outputTree, setName, setValid, testAddToTree, testBigTree, testCopiedNodeRenamer, testCopyRootToBeRoot, testCopyToOtherRoot, testCopyToSelf, testCopyTree, testCopyTreeBelowItselfFails, testCopyTreeFailsWithUniqueConstraint, testCopyTreeToAlteredName, testCopyTreeToAlteredNameWithUniqueConstraint, testCopyTreeToBeRoot, testCopyTreeWithPrecedingDelete, testCreateAndRemoveRoot, testCreateTree, testFindChildrenInCachedTree, testGetRoots, testIsBelow, testIsRoot, testLevel, testMoveRootToOtherTree, testMoveToOtherTree, testMoveTree, testMoveTreeBelowItselfFails, testMoveTreeToBeRoot, testNonUniqueRootsButUniqueChildren, testNonUniqueRootsButWholeTreeUniqueNodes, testParent, testPath, testRemoveAllTrees, testRemoveFromTree, testRemoveTree, testUniqueChildrenConstraint, testUniqueness, testUniquenessWithDeletion, testUniqueWholeTreeConstraintOnMove, testUpdateNode, testUpdateRootWithWholeTreeUniqueConstraint, testUpdateToSameNameWithUniqueConstraint
 
Methods inherited from class fri.util.database.jpa.commons.AbstractJpaTest
beginTransaction, commitTransaction, getPersistenceUnitName, log, logAfterEnd, logBeforeEnd, logStart, rollbackTransaction
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporalClosureTableTreeHibernateSessionTest

public TemporalClosureTableTreeHibernateSessionTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractJpaTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: AbstractTemporalTreeTest
Overridden to perform a different cleanup, else data would remain in database.

Overrides:
tearDown in class AbstractTemporalTreeTest<TemporalClosureTableTreeDao,ClosureTableTreeNode>
Throws:
java.lang.Exception

newDbSession

protected DbSession newDbSession(java.lang.String message)
Overrides:
newDbSession in class AbstractTreeTest<TemporalClosureTableTreeDao,ClosureTableTreeNode>

commitDbTransaction

protected void commitDbTransaction(java.lang.String message)
Overrides:
commitDbTransaction in class AbstractTreeTest<TemporalClosureTableTreeDao,ClosureTableTreeNode>

rollbackDbTransaction

protected void rollbackDbTransaction(java.lang.String message)
Overrides:
rollbackDbTransaction in class AbstractTreeTest<TemporalClosureTableTreeDao,ClosureTableTreeNode>