org.lexevs.cache
Class MethodCachingInterceptorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.DBTestCase
                  extended by org.dbunit.DataSourceBasedDBTestCase
                      extended by org.lexevs.dao.test.LexEvsDbUnitTestBase
                          extended by org.lexevs.cache.MethodCachingInterceptorTest
All Implemented Interfaces:
junit.framework.Test

public class MethodCachingInterceptorTest
extends org.lexevs.dao.test.LexEvsDbUnitTestBase

The Class MethodCachingProxyTest.

Author:
Kevin Peterson

Field Summary
 
Fields inherited from class org.lexevs.dao.test.LexEvsDbUnitTestBase
databaseType, dataSource, lexEvsDatabaseOperations, methodCachingProxy, prefixResolver, primaryKeyIncrementer, systemVariables
 
Constructor Summary
MethodCachingInterceptorTest()
           
 
Method Summary
 void clearCache()
          Clear cache.
static void main(java.lang.String[] args)
          The main method.
 void testCacheSetup()
          Test cache setup.
 void testCacheThreadSafety()
           
 void testClearCache()
          Test clear cache.
 void testCloneResult()
           
 void testComplexObject()
           
 void testDisableCache()
           
 void testPutInCache()
          Test put in cache.
 void testPutTwiceInCache()
          Test put twice in cache.
 void testTwoDifferentInCache()
          Test two different in cache.
 void testUnCachableMethod()
          Test un cachable method.
 
Methods inherited from class org.lexevs.dao.test.LexEvsDbUnitTestBase
checkSetUp, getDataSet, getDataSource, setSystemProp, setUp, tearDown
 
Methods inherited from class org.dbunit.DataSourceBasedDBTestCase
newDatabaseTester
 
Methods inherited from class org.dbunit.DBTestCase
getConnection
 
Methods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getOperationListener, getSetUpOperation, getTearDownOperation, setUpDatabaseConfig
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodCachingInterceptorTest

public MethodCachingInterceptorTest()
Method Detail

testCacheSetup

public void testCacheSetup()
Test cache setup.


clearCache

public void clearCache()
Clear cache.


testComplexObject

public void testComplexObject()

testPutInCache

public void testPutInCache()
Test put in cache.


testPutTwiceInCache

public void testPutTwiceInCache()
Test put twice in cache.


testTwoDifferentInCache

public void testTwoDifferentInCache()
Test two different in cache.


testUnCachableMethod

public void testUnCachableMethod()
Test un cachable method.


testClearCache

public void testClearCache()
Test clear cache.


testCloneResult

public void testCloneResult()

testDisableCache

public void testDisableCache()

testCacheThreadSafety

public void testCacheThreadSafety()
                           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

main

public static void main(java.lang.String[] args)
The main method.

Parameters:
args - the arguments

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.