org.hibernate.test.cache
Class InsertedDataTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.cache.InsertedDataTest

public class InsertedDataTest
extends BaseCoreFunctionalTestCase

Tests for handling of data just inserted during a transaction being read from the database and placed into cache. Initially these cases went through putFromRead which causes problems because it loses the context of that data having just been read.


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
InsertedDataTest()
           
 
Method Summary
protected  void configure(Configuration cfg)
           
protected  Class<?>[] getAnnotatedClasses()
           
 void testInsert()
           
 void testInsertThenUpdate()
           
 void testInsertThenUpdateThenRollback()
           
 void testInsertWithClear()
           
 void testInsertWithClearThenRollback()
           
 void testInsertWithRefresh()
           
 void testInsertWithRefreshThenRollback()
           
 void testInsertWithRollback()
           
 
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, 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

InsertedDataTest

public InsertedDataTest()
Method Detail

getAnnotatedClasses

protected Class<?>[] getAnnotatedClasses()
Overrides:
getAnnotatedClasses in class BaseCoreFunctionalTestCase

configure

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

testInsert

public void testInsert()

testInsertWithRollback

public void testInsertWithRollback()

testInsertThenUpdate

public void testInsertThenUpdate()

testInsertThenUpdateThenRollback

public void testInsertThenUpdateThenRollback()

testInsertWithRefresh

public void testInsertWithRefresh()

testInsertWithRefreshThenRollback

public void testInsertWithRefreshThenRollback()

testInsertWithClear

public void testInsertWithClear()

testInsertWithClearThenRollback

public void testInsertWithClearThenRollback()


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