org.hibernate.test.immutable.entitywithmutablecollection
Class AbstractEntityWithOneToManyTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest
Direct Known Subclasses:
EntityWithInverseOneToManyJoinTest, EntityWithInverseOneToManyTest, EntityWithNonInverseOneToManyJoinTest, EntityWithNonInverseOneToManyTest, EntityWithNonInverseOneToManyUnidirTest, VersionedEntityWithInverseOneToManyFailureExpectedTest, VersionedEntityWithInverseOneToManyJoinFailureExpectedTest, VersionedEntityWithInverseOneToManyJoinTest, VersionedEntityWithInverseOneToManyTest, VersionedEntityWithNonInverseOneToManyJoinTest, VersionedEntityWithNonInverseOneToManyTest

public abstract class AbstractEntityWithOneToManyTest
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
AbstractEntityWithOneToManyTest()
           
 
Method Summary
protected  void assertDeleteCount(int expected)
           
protected  void assertInsertCount(int expected)
           
protected  void assertUpdateCount(int expected)
           
protected  boolean checkUpdateCountsAfterAddingExistingElement()
           
protected  boolean checkUpdateCountsAfterRemovingElementWithoutDelete()
           
protected  void clearCounts()
           
 void configure(Configuration cfg)
           
protected  void prepareTest()
           
 void testAddExistingOneToManyElementToPersistentEntity()
           
 void testAddNewOneToManyElementToPersistentEntity()
           
 void testCreateWithEmptyOneToManyCollectionMergeWithExistingElement()
           
 void testCreateWithEmptyOneToManyCollectionUpdateWithExistingElement()
           
 void testCreateWithNonEmptyOneToManyCollectionMergeWithNewElement()
           
 void testCreateWithNonEmptyOneToManyCollectionOfExisting()
           
 void testCreateWithNonEmptyOneToManyCollectionOfNew()
           
 void testCreateWithNonEmptyOneToManyCollectionUpdateWithNewElement()
           
 void testDeleteOneToManyElement()
           
 void testDeleteOneToManyOrphan()
           
 void testMoveOneToManyElementToExistingEntityCollection()
           
 void testMoveOneToManyElementToNewEntityCollection()
           
 void testOneToManyCollectionOptimisticLockingWithMerge()
           
 void testOneToManyCollectionOptimisticLockingWithUpdate()
           
 void testRemoveOneToManyElementByDelete()
           
 void testRemoveOneToManyElementUsingMerge()
           
 void testRemoveOneToManyElementUsingUpdate()
           
 void testRemoveOneToManyOrphanUsingMerge()
           
 void testRemoveOneToManyOrphanUsingUpdate()
           
 void testUpdateProperty()
           
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, cleanupTest, configuration, constructConfiguration, createSchema, generateBootstrapRegistry, getAnnotatedClasses, getAnnotatedPackages, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getMappings, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, 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

AbstractEntityWithOneToManyTest

public AbstractEntityWithOneToManyTest()
Method Detail

configure

public void configure(Configuration cfg)
Overrides:
configure in class BaseCoreFunctionalTestCase

checkUpdateCountsAfterAddingExistingElement

protected boolean checkUpdateCountsAfterAddingExistingElement()

checkUpdateCountsAfterRemovingElementWithoutDelete

protected boolean checkUpdateCountsAfterRemovingElementWithoutDelete()

prepareTest

protected void prepareTest()
                    throws Exception
Overrides:
prepareTest in class BaseCoreFunctionalTestCase
Throws:
Exception

testUpdateProperty

public void testUpdateProperty()

testCreateWithNonEmptyOneToManyCollectionOfNew

public void testCreateWithNonEmptyOneToManyCollectionOfNew()

testCreateWithNonEmptyOneToManyCollectionOfExisting

public void testCreateWithNonEmptyOneToManyCollectionOfExisting()

testAddNewOneToManyElementToPersistentEntity

public void testAddNewOneToManyElementToPersistentEntity()

testAddExistingOneToManyElementToPersistentEntity

public void testAddExistingOneToManyElementToPersistentEntity()

testCreateWithEmptyOneToManyCollectionUpdateWithExistingElement

public void testCreateWithEmptyOneToManyCollectionUpdateWithExistingElement()

testCreateWithNonEmptyOneToManyCollectionUpdateWithNewElement

public void testCreateWithNonEmptyOneToManyCollectionUpdateWithNewElement()

testCreateWithEmptyOneToManyCollectionMergeWithExistingElement

public void testCreateWithEmptyOneToManyCollectionMergeWithExistingElement()

testCreateWithNonEmptyOneToManyCollectionMergeWithNewElement

public void testCreateWithNonEmptyOneToManyCollectionMergeWithNewElement()

testMoveOneToManyElementToNewEntityCollection

public void testMoveOneToManyElementToNewEntityCollection()

testMoveOneToManyElementToExistingEntityCollection

public void testMoveOneToManyElementToExistingEntityCollection()

testRemoveOneToManyElementUsingUpdate

public void testRemoveOneToManyElementUsingUpdate()

testRemoveOneToManyElementUsingMerge

public void testRemoveOneToManyElementUsingMerge()

testDeleteOneToManyElement

public void testDeleteOneToManyElement()

testRemoveOneToManyElementByDelete

public void testRemoveOneToManyElementByDelete()

testRemoveOneToManyOrphanUsingUpdate

public void testRemoveOneToManyOrphanUsingUpdate()

testRemoveOneToManyOrphanUsingMerge

public void testRemoveOneToManyOrphanUsingMerge()

testDeleteOneToManyOrphan

public void testDeleteOneToManyOrphan()

testOneToManyCollectionOptimisticLockingWithMerge

public void testOneToManyCollectionOptimisticLockingWithMerge()

testOneToManyCollectionOptimisticLockingWithUpdate

public void testOneToManyCollectionOptimisticLockingWithUpdate()

clearCounts

protected void clearCounts()

assertInsertCount

protected void assertInsertCount(int expected)

assertUpdateCount

protected void assertUpdateCount(int expected)

assertDeleteCount

protected void assertDeleteCount(int expected)


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