java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.hibernate.test.TestCase
org.hibernate.test.cache.BaseCacheProviderTestCase
- All Implemented Interfaces:
- junit.framework.Test
- public abstract class BaseCacheProviderTestCase
- extends org.hibernate.test.TestCase
Common requirement testing for each org.hibernate.cache.CacheProvider impl.
Fields inherited from class junit.framework.TestCase |
|
Methods inherited from class org.hibernate.test.TestCase |
afterSessionFactoryBuilt, appliesTo, assertClassAssignability, assertElementTypeAssignability, dialectIsCaseSensitive, dialectSupportsEmptyInList, dropAfterFailure, fullTestName, getBaseForMappings, getCacheConcurrencyStrategy, getCfg, getDialect, getExtraProperties, getSessions, openSession, openSession, overrideCacheStrategy, readCommittedIsolationMaintained, recreateSchema, reportSkip, reportSkip, runTest, setCfg, setUp, sfi |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
BaseCacheProviderTestCase
public BaseCacheProviderTestCase(java.lang.String x)
getMappings
protected java.lang.String[] getMappings()
configure
protected void configure(org.hibernate.cfg.Configuration cfg)
getCacheProvider
protected abstract java.lang.Class getCacheProvider()
- The cache provider to be tested.
getConfigResourceKey
protected abstract java.lang.String getConfigResourceKey()
- For provider-specific configuration, the name of the property key the
provider expects.
getConfigResourceLocation
protected abstract java.lang.String getConfigResourceLocation()
- For provider-specific configuration, the resource location of that
config resource.
useTransactionManager
protected abstract boolean useTransactionManager()
- Should we use a transaction manager for transaction management.
testQueryCacheInvalidation
public void testQueryCacheInvalidation()
testEmptySecondLevelCacheEntry
public void testEmptySecondLevelCacheEntry()
throws java.lang.Exception
testStaleWritesLeaveCacheConsistent
public void testStaleWritesLeaveCacheConsistent()