org.hibernate.test.immutable.entitywithmutablecollection
Class AbstractEntityWithManyToManyTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithManyToManyTest
Direct Known Subclasses:
EntityWithInverseManyToManyTest, EntityWithNonInverseManyToManyTest, EntityWithNonInverseManyToManyUnidirTest, VersionedEntityWithInverseManyToManyTest, VersionedEntityWithNonInverseManyToManyTest

public abstract class AbstractEntityWithManyToManyTest
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
AbstractEntityWithManyToManyTest()
           
 
Method Summary
protected  void assertDeleteCount(int expected)
           
protected  void assertInsertCount(int expected)
           
protected  void assertUpdateCount(int expected)
           
protected  void clearCounts()
           
 void configure(Configuration cfg)
           
protected  void prepareTest()
           
 void testAddExistingManyToManyElementToPersistentEntity()
           
 void testAddNewManyToManyElementToPersistentEntity()
           
 void testCreateWithEmptyManyToManyCollectionMergeWithExistingElement()
           
 void testCreateWithEmptyManyToManyCollectionUpdateWithExistingElement()
           
 void testCreateWithNonEmptyManyToManyCollectionMergeWithNewElement()
           
 void testCreateWithNonEmptyManyToManyCollectionOfExisting()
           
 void testCreateWithNonEmptyManyToManyCollectionOfNew()
           
 void testCreateWithNonEmptyManyToManyCollectionUpdateWithNewElement()
           
 void testDeleteManyToManyElement()
           
 void testManyToManyCollectionOptimisticLockingWithMerge()
           
 void testManyToManyCollectionOptimisticLockingWithUpdate()
           
 void testMoveManyToManyElementToExistingEntityCollection()
           
 void testMoveManyToManyElementToNewEntityCollection()
           
 void testRemoveManyToManyElementByDelete()
           
 void testRemoveManyToManyElementUsingMerge()
           
 void testRemoveManyToManyElementUsingMergeBothSides()
           
 void testRemoveManyToManyElementUsingUpdate()
           
 void testRemoveManyToManyElementUsingUpdateBothSides()
           
 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

AbstractEntityWithManyToManyTest

public AbstractEntityWithManyToManyTest()
Method Detail

configure

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

prepareTest

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

testUpdateProperty

public void testUpdateProperty()

testCreateWithNonEmptyManyToManyCollectionOfNew

public void testCreateWithNonEmptyManyToManyCollectionOfNew()

testCreateWithNonEmptyManyToManyCollectionOfExisting

public void testCreateWithNonEmptyManyToManyCollectionOfExisting()

testAddNewManyToManyElementToPersistentEntity

public void testAddNewManyToManyElementToPersistentEntity()

testAddExistingManyToManyElementToPersistentEntity

public void testAddExistingManyToManyElementToPersistentEntity()

testCreateWithEmptyManyToManyCollectionUpdateWithExistingElement

public void testCreateWithEmptyManyToManyCollectionUpdateWithExistingElement()

testCreateWithNonEmptyManyToManyCollectionUpdateWithNewElement

public void testCreateWithNonEmptyManyToManyCollectionUpdateWithNewElement()

testCreateWithEmptyManyToManyCollectionMergeWithExistingElement

public void testCreateWithEmptyManyToManyCollectionMergeWithExistingElement()

testCreateWithNonEmptyManyToManyCollectionMergeWithNewElement

public void testCreateWithNonEmptyManyToManyCollectionMergeWithNewElement()

testRemoveManyToManyElementUsingUpdate

public void testRemoveManyToManyElementUsingUpdate()

testRemoveManyToManyElementUsingUpdateBothSides

public void testRemoveManyToManyElementUsingUpdateBothSides()

testRemoveManyToManyElementUsingMerge

public void testRemoveManyToManyElementUsingMerge()

testRemoveManyToManyElementUsingMergeBothSides

public void testRemoveManyToManyElementUsingMergeBothSides()

testDeleteManyToManyElement

public void testDeleteManyToManyElement()

testRemoveManyToManyElementByDelete

public void testRemoveManyToManyElementByDelete()

testManyToManyCollectionOptimisticLockingWithMerge

public void testManyToManyCollectionOptimisticLockingWithMerge()

testManyToManyCollectionOptimisticLockingWithUpdate

public void testManyToManyCollectionOptimisticLockingWithUpdate()

testMoveManyToManyElementToNewEntityCollection

public void testMoveManyToManyElementToNewEntityCollection()

testMoveManyToManyElementToExistingEntityCollection

public void testMoveManyToManyElementToExistingEntityCollection()

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.