|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.ojb.broker.ObjectCacheTest
Do some basic tests using ObjectCache implementations.
Nested Class Summary | |
static class |
ObjectCacheTest.CacheFilterObject
in class-descriptor CacheFilter attribute 'cacheable=false' is declared |
static class |
ObjectCacheTest.CacheObject
|
static class |
ObjectCacheTest.TestObjectDefaultCache
|
static class |
ObjectCacheTest.TestObjectEmptyCache
in class-descriptor ObjectCacheEmptyImpl class is declared as cache implementation. |
Field Summary | |
(package private) java.lang.String[] |
cacheFilter
|
(package private) static java.lang.String |
EXCLUDE_PACKAGE
|
(package private) static java.lang.String |
EXCLUDE_PACKAGE_NOT_EXIST
|
(package private) java.lang.Class[] |
objectCacheImpls
|
(package private) java.lang.String[] |
old_CacheFilter
|
(package private) java.lang.Class |
old_ObjectCache
|
Constructor Summary | |
ObjectCacheTest(java.lang.String s)
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testCacheFilterFunctions()
This test check the CacheFilter feature and the two standard implementations enable per class and per package out-filtering of objects. |
void |
testJCSPerClassObjectCacheImplementation()
Test the JCS cache implementation. |
void |
testObjectCacheDefaultImpl()
|
void |
testObjectCacheDefaultImplTimeout()
|
void |
testPerClassCache()
Test per class ObjectCache declaration. |
void |
testPerDatabaseCache()
Read a specific jdbc-connction-descriptor at runtime, merge it with current ConnectionRepository, lookup a specific PersistenceBroker instance, get ObjectCache. |
void |
testSimpleObjectCacheFunctions()
Check base caching functions of some cache implementations. |
void |
YYYtestCacheIsolation()
This test checks if the caches of two different brokers are properly isolated. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final java.lang.String EXCLUDE_PACKAGE
static final java.lang.String EXCLUDE_PACKAGE_NOT_EXIST
java.lang.Class[] objectCacheImpls
java.lang.String[] cacheFilter
java.lang.Class old_ObjectCache
java.lang.String[] old_CacheFilter
Constructor Detail |
public ObjectCacheTest(java.lang.String s)
Method Detail |
public static void main(java.lang.String[] args)
protected void setUp() throws java.lang.Exception
java.lang.Exception
protected void tearDown() throws java.lang.Exception
java.lang.Exception
public void testJCSPerClassObjectCacheImplementation() throws java.lang.Exception
java.lang.Exception
public void testObjectCacheDefaultImplTimeout() throws java.lang.Exception
java.lang.Exception
public void testObjectCacheDefaultImpl() throws java.lang.Exception
java.lang.Exception
public void testCacheFilterFunctions() throws java.lang.Exception
java.lang.Exception
public void testSimpleObjectCacheFunctions() throws java.lang.Exception
java.lang.Exception
public void testPerClassCache() throws java.lang.Exception
java.lang.Exception
public void testPerDatabaseCache()
public void YYYtestCacheIsolation() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |