org.hibernate.testing.cache
Class BaseCacheProviderTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hibernate.testing.junit.UnitTestCase
              extended by org.hibernate.testing.junit.functional.FunctionalTestCase
                  extended by org.hibernate.testing.cache.BaseCacheTestCase
                      extended by org.hibernate.testing.cache.BaseCacheProviderTestCase
All Implemented Interfaces:
junit.framework.Test, ExecutionEnvironment.Settings

public abstract class BaseCacheProviderTestCase
extends BaseCacheTestCase

Common requirement testing for each CacheProvider impl.

Author:
Steve Ebersole

Field Summary
 
Fields inherited from class org.hibernate.testing.junit.functional.FunctionalTestCase
NO_CLASSES, NO_MAPPINGS
 
Constructor Summary
BaseCacheProviderTestCase(String x)
           
 
Method Summary
protected  void configCache(Configuration cfg)
           
protected abstract  Class getCacheProvider()
          The cache provider to be tested.
protected  Map getMapFromCachedEntry(Object entry)
           
 
Methods inherited from class org.hibernate.testing.cache.BaseCacheTestCase
configure, getBaseForMappings, getConfigResourceKey, getConfigResourceLocation, getMappings, testEmptySecondLevelCacheEntry, testQueryCacheInvalidation, testStaleWritesLeaveCacheConsistent, useTransactionManager
 
Methods inherited from class org.hibernate.testing.junit.functional.FunctionalTestCase
afterConfigurationBuilt, afterSessionFactoryBuilt, allowsPhysicalColumnNameInHaving, allowsPhysicalColumnNameInOrderby, appliesTo, assertAllDataRemoved, cleanupTest, createSchema, dialectIs, dialectIsCaseSensitive, dialectIsNot, dialectIsNot, dialectIsOneOf, dialectSupportsEmptyInList, getAnnotatedClasses, getCacheConcurrencyStrategy, getCfg, getDialect, getEnvironment, getSessions, isSerializableIsolationEnforced, openSession, openSession, overrideCacheStrategy, prepareTest, readCommittedIsolationMaintained, recreateSchemaAfterFailure, runTest, setEnvironment, setUp, sfi, skipExpectedFailure, supportsCircularCascadeDelete, supportsExpectedLobUsagePattern, supportsLobValueChangePropogation, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsSubqueryOnMutatingTable, supportsSubselectOnLeftSideIn, supportsUnboundedLobLocatorMaterialization, tearDown
 
Methods inherited from class org.hibernate.testing.junit.UnitTestCase
assertClassAssignability, assertElementTypeAssignability, createFailureExpectedSuite, fullTestName, reportSkip, runBare
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseCacheProviderTestCase

public BaseCacheProviderTestCase(String x)
Method Detail

configCache

protected void configCache(Configuration cfg)
Specified by:
configCache in class BaseCacheTestCase

getCacheProvider

protected abstract Class getCacheProvider()
The cache provider to be tested.

Returns:
The cache provider.

getMapFromCachedEntry

protected Map getMapFromCachedEntry(Object entry)
Specified by:
getMapFromCachedEntry in class BaseCacheTestCase


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