org.hibernate.test.immutable
Class ImmutableTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.immutable.ImmutableTest

public class ImmutableTest
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
ImmutableTest()
           
 
Method Summary
protected  void assertDeleteCount(int expected)
           
protected  void assertInsertCount(int expected)
           
protected  void assertUpdateCount(int expected)
           
protected  void clearCounts()
           
 void configure(Configuration cfg)
           
 String[] getMappings()
           
 void testChangeImmutableEntityProxyToModifiable()
           
 void testChangeImmutableEntityToModifiable()
           
 void testDeleteDetachedImmutable()
           
 void testDeleteDetachedModifiedImmutable()
           
 void testGetAndDeleteManagedImmutable()
           
 void testImmutable()
           
 void testImmutableChildEntityWithMerge()
           
 void testImmutableChildEntityWithUpdate()
           
 void testImmutableCollectionWithMerge()
           
 void testImmutableCollectionWithUpdate()
           
 void testImmutableEntityAddImmutableToInverseMutableCollection()
           
 void testImmutableEntityRemoveImmutableFromInverseMutableCollection()
           
 void testImmutableEntityRemoveImmutableFromInverseMutableCollectionByDelete()
           
 void testImmutableEntityRemoveImmutableFromInverseMutableCollectionByDeref()
           
 void testImmutableParentEntityWithMerge()
           
 void testImmutableParentEntityWithUpdate()
           
 void testNewEntityViaImmutableEntityWithImmutableCollectionUsingMerge()
           
 void testNewEntityViaImmutableEntityWithImmutableCollectionUsingSaveOrUpdate()
           
 void testPersistAndUpdateImmutable()
           
 void testPersistImmutable()
           
 void testPersistUpdateImmutableInSameTransaction()
           
 void testRefreshImmutable()
           
 void testSaveImmutable()
           
 void testSaveOrUpdateImmutable()
           
 void testUnmodifiedImmutableParentEntityWithMerge()
           
 void testUpdateAndDeleteManagedImmutable()
           
 void testUpdatedEntityViaImmutableEntityWithImmutableCollectionUsingMerge()
           
 void testUpdatedEntityViaImmutableEntityWithImmutableCollectionUsingSaveOrUpdate()
           
 
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, 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

ImmutableTest

public ImmutableTest()
Method Detail

configure

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

getMappings

public String[] getMappings()
Overrides:
getMappings in class BaseCoreFunctionalTestCase

testChangeImmutableEntityProxyToModifiable

public void testChangeImmutableEntityProxyToModifiable()

testChangeImmutableEntityToModifiable

public void testChangeImmutableEntityToModifiable()

testPersistImmutable

public void testPersistImmutable()

testPersistUpdateImmutableInSameTransaction

public void testPersistUpdateImmutableInSameTransaction()

testSaveImmutable

public void testSaveImmutable()

testSaveOrUpdateImmutable

public void testSaveOrUpdateImmutable()

testRefreshImmutable

public void testRefreshImmutable()

testImmutable

public void testImmutable()

testPersistAndUpdateImmutable

public void testPersistAndUpdateImmutable()

testUpdateAndDeleteManagedImmutable

public void testUpdateAndDeleteManagedImmutable()

testGetAndDeleteManagedImmutable

public void testGetAndDeleteManagedImmutable()

testDeleteDetachedImmutable

public void testDeleteDetachedImmutable()

testDeleteDetachedModifiedImmutable

public void testDeleteDetachedModifiedImmutable()

testImmutableParentEntityWithUpdate

public void testImmutableParentEntityWithUpdate()

testImmutableChildEntityWithUpdate

public void testImmutableChildEntityWithUpdate()

testImmutableCollectionWithUpdate

public void testImmutableCollectionWithUpdate()

testUnmodifiedImmutableParentEntityWithMerge

public void testUnmodifiedImmutableParentEntityWithMerge()

testImmutableParentEntityWithMerge

public void testImmutableParentEntityWithMerge()

testImmutableChildEntityWithMerge

public void testImmutableChildEntityWithMerge()

testImmutableCollectionWithMerge

public void testImmutableCollectionWithMerge()

testNewEntityViaImmutableEntityWithImmutableCollectionUsingSaveOrUpdate

public void testNewEntityViaImmutableEntityWithImmutableCollectionUsingSaveOrUpdate()

testNewEntityViaImmutableEntityWithImmutableCollectionUsingMerge

public void testNewEntityViaImmutableEntityWithImmutableCollectionUsingMerge()

testUpdatedEntityViaImmutableEntityWithImmutableCollectionUsingSaveOrUpdate

public void testUpdatedEntityViaImmutableEntityWithImmutableCollectionUsingSaveOrUpdate()

testUpdatedEntityViaImmutableEntityWithImmutableCollectionUsingMerge

public void testUpdatedEntityViaImmutableEntityWithImmutableCollectionUsingMerge()

testImmutableEntityAddImmutableToInverseMutableCollection

public void testImmutableEntityAddImmutableToInverseMutableCollection()

testImmutableEntityRemoveImmutableFromInverseMutableCollection

public void testImmutableEntityRemoveImmutableFromInverseMutableCollection()

testImmutableEntityRemoveImmutableFromInverseMutableCollectionByDelete

public void testImmutableEntityRemoveImmutableFromInverseMutableCollectionByDelete()

testImmutableEntityRemoveImmutableFromInverseMutableCollectionByDeref

public void testImmutableEntityRemoveImmutableFromInverseMutableCollectionByDeref()

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.