org.hibernate.test.readonly
Class ReadOnlyVersionedNodesTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.readonly.AbstractReadOnlyTest
              extended by org.hibernate.test.readonly.ReadOnlyVersionedNodesTest

public class ReadOnlyVersionedNodesTest
extends AbstractReadOnlyTest


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
ReadOnlyVersionedNodesTest()
           
 
Method Summary
protected  void cleanupTest()
           
 String[] getMappings()
           
 void testAddNewChildToReadOnlyParent()
           
 void testAddNewParentToReadOnlyChild()
           
 void testGetChildMakeReadOnlyThenMergeDetachedChildWithNewParent()
           
 void testGetParentMakeReadOnlyThenMergeDetachedParentWithNewChildC()
           
 void testMergeDetachedChildWithNewParentCommitWithReadOnlyChild()
           
 void testMergeDetachedParentWithNewChildCommitWithReadOnlyParent()
           
 void testMergeUnchangedDetachedParentChildren()
           
 void testSetReadOnlyTrueAndFalse()
           
 void testSetReadOnlyUpdateSetModifiable()
           
 void testUpdateChildWithNewParentCommitWithReadOnlyChild()
           
 void testUpdateParentWithNewChildCommitWithReadOnlyParent()
           
 void testUpdateSetModifiable()
           
 void testUpdateSetReadOnlySetModifiable()
           
 void testUpdateSetReadOnlyTwice()
           
 
Methods inherited from class org.hibernate.test.readonly.AbstractReadOnlyTest
assertDeleteCount, assertInsertCount, assertUpdateCount, clearCounts, configure, getCacheConcurrencyStrategy, getSessionCacheMode, openSession
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, configuration, constructConfiguration, createSchema, generateBootstrapRegistry, getAnnotatedClasses, getAnnotatedPackages, getBaseForMappings, getDialect, getXmlFiles, onFailure, 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

ReadOnlyVersionedNodesTest

public ReadOnlyVersionedNodesTest()
Method Detail

getMappings

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

testSetReadOnlyTrueAndFalse

public void testSetReadOnlyTrueAndFalse()
                                 throws Exception
Throws:
Exception

testUpdateSetReadOnlyTwice

public void testUpdateSetReadOnlyTwice()
                                throws Exception
Throws:
Exception

testUpdateSetModifiable

public void testUpdateSetModifiable()
                             throws Exception
Throws:
Exception

testUpdateSetReadOnlySetModifiable

public void testUpdateSetReadOnlySetModifiable()
                                        throws Exception
Throws:
Exception

testSetReadOnlyUpdateSetModifiable

public void testSetReadOnlyUpdateSetModifiable()
                                        throws Exception
Throws:
Exception

testAddNewChildToReadOnlyParent

public void testAddNewChildToReadOnlyParent()
                                     throws Exception
Throws:
Exception

testUpdateParentWithNewChildCommitWithReadOnlyParent

public void testUpdateParentWithNewChildCommitWithReadOnlyParent()
                                                          throws Exception
Throws:
Exception

testMergeDetachedParentWithNewChildCommitWithReadOnlyParent

public void testMergeDetachedParentWithNewChildCommitWithReadOnlyParent()
                                                                 throws Exception
Throws:
Exception

testGetParentMakeReadOnlyThenMergeDetachedParentWithNewChildC

public void testGetParentMakeReadOnlyThenMergeDetachedParentWithNewChildC()
                                                                   throws Exception
Throws:
Exception

testMergeUnchangedDetachedParentChildren

public void testMergeUnchangedDetachedParentChildren()
                                              throws Exception
Throws:
Exception

testAddNewParentToReadOnlyChild

public void testAddNewParentToReadOnlyChild()
                                     throws Exception
Throws:
Exception

testUpdateChildWithNewParentCommitWithReadOnlyChild

public void testUpdateChildWithNewParentCommitWithReadOnlyChild()
                                                         throws Exception
Throws:
Exception

testMergeDetachedChildWithNewParentCommitWithReadOnlyChild

public void testMergeDetachedChildWithNewParentCommitWithReadOnlyChild()
                                                                throws Exception
Throws:
Exception

testGetChildMakeReadOnlyThenMergeDetachedChildWithNewParent

public void testGetChildMakeReadOnlyThenMergeDetachedChildWithNewParent()
                                                                 throws Exception
Throws:
Exception

cleanupTest

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


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