org.hibernate.test.event.collection
Class AbstractCollectionEventTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.event.collection.AbstractCollectionEventTest
Direct Known Subclasses:
AbstractAssociationCollectionEventTest, ValuesBagCollectionEventTest

public abstract class AbstractCollectionEventTest
extends BaseCoreFunctionalTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
BaseCoreFunctionalTestCase.RollbackWork
 
Field Summary
 
Fields inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
DIALECT, NO_CLASSES, NO_MAPPINGS, USE_NEW_METADATA_MAPPINGS, VALIDATE_DATA_CLEANUP
 
Constructor Summary
AbstractCollectionEventTest()
           
 
Method Summary
protected  void checkNumberOfResults(CollectionListeners listeners, int nEventsExpected)
           
protected  void checkResult(CollectionListeners listeners, CollectionListeners.Listener listenerExpected, ChildWithBidirectionalManyToMany child, int index)
           
protected  void checkResult(CollectionListeners listeners, CollectionListeners.Listener listenerExpected, Entity ownerExpected, Collection collExpected, int index)
           
protected  void checkResult(CollectionListeners listeners, CollectionListeners.Listener listenerExpected, ParentWithCollection parent, int index)
           
protected  void cleanupTest()
           
abstract  Collection createCollection()
           
abstract  ParentWithCollection createParent(String name)
           
protected  ParentWithCollection createParentWithNoChildren(String parentName)
           
protected  ParentWithCollection createParentWithNullChildren(String parentName)
           
protected  ParentWithCollection createParentWithOneChild(String parentName, String ChildName)
           
 void testDeleteParentAndChild()
           
 void testDeleteParentWithNoChildren()
           
 void testDeleteParentWithNullChildren()
           
 void testMoveAllChildrenToDifferentParent()
           
 void testMoveChildToDifferentParent()
           
 void testMoveCollectionToDifferentParent()
           
 void testMoveCollectionToDifferentParentFlushMoveToDifferentParent()
           
 void testSaveParentEmptyChildren()
           
 void testSaveParentOneChild()
           
 void testUpdateParentNoneToOneChild()
           
 void testUpdateParentNoneToOneChildDiffCollection()
           
 void testUpdateParentNullToOneChild()
           
 void testUpdateParentNullToOneChildDiffCollection()
           
 void testUpdateParentOneChildDiffCollectionDiffChild()
           
 void testUpdateParentOneChildDiffCollectionSameChild()
           
 void testUpdateParentOneChildToNoneByClear()
           
 void testUpdateParentOneChildToNoneByRemove()
           
 void testUpdateParentOneToTwoChildren()
           
 void testUpdateParentOneToTwoSameChildren()
           
 void testUpdateParentTwoChildrenToOne()
           
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, configuration, configure, constructConfiguration, createSchema, generateBootstrapRegistry, getAnnotatedClasses, getAnnotatedPackages, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getMappings, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, prepareTest, readCommittedIsolationMaintained, rebuildSessionFactory, rebuildSessionFactoryOnError, serviceRegistry, sessionFactory
 
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
releaseTransactions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCollectionEventTest

public AbstractCollectionEventTest()
Method Detail

cleanupTest

protected void cleanupTest()
Overrides:
cleanupTest in class BaseCoreFunctionalTestCase

createParent

public abstract ParentWithCollection createParent(String name)

createCollection

public abstract Collection createCollection()

testSaveParentEmptyChildren

public void testSaveParentEmptyChildren()

testSaveParentOneChild

public void testSaveParentOneChild()

testUpdateParentNullToOneChild

public void testUpdateParentNullToOneChild()

testUpdateParentNoneToOneChild

public void testUpdateParentNoneToOneChild()

testUpdateParentOneToTwoChildren

public void testUpdateParentOneToTwoChildren()

testUpdateParentOneToTwoSameChildren

public void testUpdateParentOneToTwoSameChildren()

testUpdateParentNullToOneChildDiffCollection

public void testUpdateParentNullToOneChildDiffCollection()

testUpdateParentNoneToOneChildDiffCollection

public void testUpdateParentNoneToOneChildDiffCollection()

testUpdateParentOneChildDiffCollectionSameChild

public void testUpdateParentOneChildDiffCollectionSameChild()

testUpdateParentOneChildDiffCollectionDiffChild

public void testUpdateParentOneChildDiffCollectionDiffChild()

testUpdateParentOneChildToNoneByRemove

public void testUpdateParentOneChildToNoneByRemove()

testUpdateParentOneChildToNoneByClear

public void testUpdateParentOneChildToNoneByClear()

testUpdateParentTwoChildrenToOne

public void testUpdateParentTwoChildrenToOne()

testDeleteParentWithNullChildren

public void testDeleteParentWithNullChildren()

testDeleteParentWithNoChildren

public void testDeleteParentWithNoChildren()

testDeleteParentAndChild

public void testDeleteParentAndChild()

testMoveChildToDifferentParent

public void testMoveChildToDifferentParent()

testMoveAllChildrenToDifferentParent

public void testMoveAllChildrenToDifferentParent()

testMoveCollectionToDifferentParent

public void testMoveCollectionToDifferentParent()

testMoveCollectionToDifferentParentFlushMoveToDifferentParent

public void testMoveCollectionToDifferentParentFlushMoveToDifferentParent()

createParentWithNullChildren

protected ParentWithCollection createParentWithNullChildren(String parentName)

createParentWithNoChildren

protected ParentWithCollection createParentWithNoChildren(String parentName)

createParentWithOneChild

protected ParentWithCollection createParentWithOneChild(String parentName,
                                                        String ChildName)

checkResult

protected void checkResult(CollectionListeners listeners,
                           CollectionListeners.Listener listenerExpected,
                           ParentWithCollection parent,
                           int index)

checkResult

protected void checkResult(CollectionListeners listeners,
                           CollectionListeners.Listener listenerExpected,
                           ChildWithBidirectionalManyToMany child,
                           int index)

checkResult

protected void checkResult(CollectionListeners listeners,
                           CollectionListeners.Listener listenerExpected,
                           Entity ownerExpected,
                           Collection collExpected,
                           int index)

checkNumberOfResults

protected void checkNumberOfResults(CollectionListeners listeners,
                                    int nEventsExpected)


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