Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.test.cache
Class BaseCacheProviderTestCase  view BaseCacheProviderTestCase download BaseCacheProviderTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.hibernate.test.TestCase
              extended byorg.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.


Field Summary
 
Fields inherited from class org.hibernate.test.TestCase
SKIP_LOG
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
BaseCacheProviderTestCase(java.lang.String x)
           
 
Method Summary
protected  void configure(org.hibernate.cfg.Configuration cfg)
           
protected abstract  java.lang.Class getCacheProvider()
          The cache provider to be tested.
protected abstract  java.lang.String getConfigResourceKey()
          For provider-specific configuration, the name of the property key the provider expects.
protected abstract  java.lang.String getConfigResourceLocation()
          For provider-specific configuration, the resource location of that config resource.
protected  java.lang.String[] getMappings()
           
 void testEmptySecondLevelCacheEntry()
           
 void testQueryCacheInvalidation()
           
 void testStaleWritesLeaveCacheConsistent()
           
protected abstract  boolean useTransactionManager()
          Should we use a transaction manager for transaction management.
 
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.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, tearDown, 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(java.lang.String x)
Method Detail

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()