| Modifier and Type | Field and Description |
|---|---|
protected org.apache.derby.iapi.services.cache.CacheFactory |
cf |
protected T_Fail |
threadFail |
out, shortModuleToTestName, startParams| Constructor and Description |
|---|
T_CacheService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getModuleToTestProtocolName()
Get the name of the protocol for the module to test.
|
org.apache.derby.iapi.services.cache.Cacheable |
newCacheable(org.apache.derby.iapi.services.cache.CacheManager cm) |
protected void |
runTests()
Run the test.
|
void |
setChildException(T_Fail tf) |
protected void |
t_findCachedFail(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
A call to findCached() that is expected to return nothing.
|
protected org.apache.derby.iapi.services.cache.Cacheable |
t_findCachedSucceed(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
A call to findCached() that is expected to find something.
|
protected void |
t_findFail(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
A call to find() that is expected to return nothing.
|
protected org.apache.derby.iapi.services.cache.Cacheable |
t_findSucceed(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
A call to findCached() that is expected to find something.
|
protected void |
T001(org.apache.derby.iapi.services.cache.CacheManager cm,
int cacheSize)
Test the find and findCached calls.
|
protected void |
thrashCache(org.apache.derby.iapi.services.cache.CacheManager cm,
int threads,
int iterations) |
boot, Execute, FAIL, PASS, REPORT, stop, UnitTestDuration, UnitTestTypeprotected org.apache.derby.iapi.services.cache.CacheFactory cf
protected T_Fail threadFail
public org.apache.derby.iapi.services.cache.Cacheable newCacheable(org.apache.derby.iapi.services.cache.CacheManager cm)
newCacheable in interface org.apache.derby.iapi.services.cache.CacheableFactoryprotected void runTests()
throws T_Fail
T_Genericprotected java.lang.String getModuleToTestProtocolName()
getModuleToTestProtocolName in class T_Genericprotected void T001(org.apache.derby.iapi.services.cache.CacheManager cm,
int cacheSize)
throws T_Fail,
org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException - Standard Derby Error policyT_Fail - Some errorprotected void thrashCache(org.apache.derby.iapi.services.cache.CacheManager cm,
int threads,
int iterations)
throws T_Fail
T_Failpublic void setChildException(T_Fail tf)
protected void t_findCachedFail(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardException - Standard Derby Error policyT_Fail - Something was found.protected org.apache.derby.iapi.services.cache.Cacheable t_findCachedSucceed(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
throws org.apache.derby.iapi.error.StandardException,
T_Fail
org.apache.derby.iapi.error.StandardException - Standard Derby Error policyT_Fail - Nothing was found.protected void t_findFail(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
throws T_Fail,
org.apache.derby.iapi.error.StandardException
T_Fail - Something was found.org.apache.derby.iapi.error.StandardException - Standard Derby Error policyprotected org.apache.derby.iapi.services.cache.Cacheable t_findSucceed(org.apache.derby.iapi.services.cache.CacheManager cm,
java.lang.Object key)
throws T_Fail,
org.apache.derby.iapi.error.StandardException
T_Fail - Nothing was found.org.apache.derby.iapi.error.StandardException - Standard Derby Error policyApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.