Public Member Functions | |
EngineCacheTest () | |
void | testPushPopSingleFile () throws Exception |
void | testPushPopSeveralFiles () throws Exception |
void | testCacheEntryTranslation () throws Exception |
Protected Member Functions | |
Override void | setUp () throws Exception |
Override void | tearDown () throws Exception |
Private Member Functions | |
Vector< String > | generateStrings (int size) |
Private Attributes | |
EngineCache | cache |
Static Private Attributes | |
final int | CACHE_SIZE = 30000 |
EngineCache
.
|
|
|
Generate the strings to put in the cache. The number of strings to put in the vector depends by the passed parameter. The sum of the length of all the strings in the vector is equal or greater to the passed parameter. In this way it is possible to check if the cache creates/deletes a file in the right moment.
|
|
|
|
|
|
Check the conversion in CacheEntry between the key, start and end position and their representations as an hexadecimal string. |
|
Test the normal behavior of the cache by pushing and getting strings into the cache involving the creation of several files.
|
|
Test the normal behavior of the cache by pushing and getting strings into the cache without involving the creation of more then on file.
|
|
|
|
|