Public Member Functions | |
DeleteLogTest () throws Exception | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
void | testLogFileCacheDelete () throws Exception |
void | testDeleteAllFromLogFileCache () throws Exception |
void | testDeleteAllFromLogCache () throws Exception |
void | testDeleteAllFromLogBufferedFileCache () throws Exception |
void | testLogBufferedFileCacheDelete () throws Exception |
void | testLogCacheDelete () throws Exception |
void | testContent () throws Exception |
void | testGetFirstLogLogFileCache () throws Exception |
void | testGetFirstLogLogBufferedFileCache () throws Exception |
void | testGetLastLogLogFileCache () throws Exception |
void | testGetLastLogLogBufferedFileCache () throws Exception |
void | testDeleteLogsFromLogFileCache () throws Exception |
void | testDeleteLogsFromLogBufferedFileCache () throws Exception |
void | testDeleteLogsFromLogCache () throws Exception |
|
Constructor |
|
|
|
|
|
Check the content of the cache (LogCache)
|
|
Generate a cache and randomly delete all its logs For each deleted log, the content of the cache is checked against the content of the collection to verify the consistency its content The tests check 2 cases: 1 all the logs in the buffer 2 some log on disk and the others in the buffer
|
|
Generate a cache and randomly delete all its logs For each deleted log, the content of the cache is checked against the content of the collection to verify the consistency its content. Such test is done comparing the content of the maessage of the log with the content of the collection The test check also the consistency of the arrays of times and types (logTimes and logTypes in LogCache) At each iteration we try to fill the in-memory cache because we must stress this part.
|
|
Generate a cache and randomly delete all its logs For each deleted log, the content of the cache is checked against the content of the collection to verify the consistency its content
|
|
Test the deletion of a collection of logs from LogBufferedFileCache
|
|
Test the deletion of a collection of logs from LogCache
|
|
Test the deletion of a collection of logs from LogFileCache
|
|
Test the getFirstLog after deletion of logs for LogBufferedFileCache
|
|
Test the getFirstLog after deletion of logs for LogFileCache
|
|
Test the getLastLog after deletion of logs for LogBufferedFileCache
|
|
Test the getLastLog after deletion of logs for LogFileCache
|
|
Test the deletion of logs in LogBufferedFileCache with all the logs in the buffer (i.e. the size of the buffer is so big to store all the allocated logs)
|
|
Test the deletion of logs in the LogFileCache The test delete the first log, the last log and one log in the middel of the cache. After each deletion a bounce of checks assure the integrity of the cache LogFileCache has no cache/buffering inmemory se we can test with few logs |
|
Test the deletion of logs in the LogFileCache The test delete the first log, the last log and one log in the middel of the cache. After each deletion a bounce of checks assure the integrity of the cache LogFileCache has no cache/buffering inmemory se we can test with few logs |