

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 |
A class to test the deletion of logs in the cache The test involves LogCache, LogBufferedFileCache and LogFileCache
| alma::acs::jlog::test::DeleteLogTest::DeleteLogTest | ( | ) | throws Exception [inline] |
Constructor
| void alma::acs::jlog::test::DeleteLogTest::setUp | ( | ) | throws Exception [inline] |
| void alma::acs::jlog::test::DeleteLogTest::tearDown | ( | ) | throws Exception [inline] |
| void alma::acs::jlog::test::DeleteLogTest::testContent | ( | ) | throws Exception [inline] |
Check the content of the cache (LogCache)
| Exception |
References com::cosylab::logging::client::cache::LogCache::add(), com::cosylab::logging::engine::log::ILogEntry::getField(), com::cosylab::logging::client::cache::LogCache::getLog(), and com::cosylab::logging::client::cache::LogMultiFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testDeleteAllFromLogBufferedFileCache | ( | ) | throws Exception [inline] |
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
| Exception |
| void alma::acs::jlog::test::DeleteLogTest::testDeleteAllFromLogCache | ( | ) | throws Exception [inline] |
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.
| Exception |
| void alma::acs::jlog::test::DeleteLogTest::testDeleteAllFromLogFileCache | ( | ) | throws Exception [inline] |
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
| Exception |
| void alma::acs::jlog::test::DeleteLogTest::testDeleteLogsFromLogBufferedFileCache | ( | ) | throws Exception [inline] |
Test the deletion of a collection of logs from LogBufferedFileCache
| Exception |
References com::cosylab::logging::client::cache::LogBufferedFileCache::add(), com::cosylab::logging::client::cache::LogBufferedFileCache::clear(), com::cosylab::logging::client::cache::LogBufferedFileCache::deleteLogs(), com::cosylab::logging::client::cache::LogBufferedFileCache::getFirstLog(), com::cosylab::logging::client::cache::LogBufferedFileCache::getLog(), and com::cosylab::logging::client::cache::LogBufferedFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testDeleteLogsFromLogCache | ( | ) | throws Exception [inline] |
Test the deletion of a collection of logs from LogCache
| Exception |
References com::cosylab::logging::client::cache::LogCache::add(), com::cosylab::logging::client::cache::LogCache::clear(), com::cosylab::logging::client::cache::LogCache::deleteLogs(), com::cosylab::logging::client::cache::LogMultiFileCache::getFirstLog(), com::cosylab::logging::client::cache::LogCache::getLog(), and com::cosylab::logging::client::cache::LogMultiFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testDeleteLogsFromLogFileCache | ( | ) | throws Exception [inline] |
Test the deletion of a collection of logs from LogFileCache
| Exception |
References com::cosylab::logging::client::cache::LogFileCache::add(), com::cosylab::logging::client::cache::LogFileCache::clear(), com::cosylab::logging::client::cache::LogFileCache::deleteLogs(), com::cosylab::logging::client::cache::LogFileCache::getFirstLog(), com::cosylab::logging::client::cache::LogFileCache::getLog(), and com::cosylab::logging::client::cache::LogFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testGetFirstLogLogBufferedFileCache | ( | ) | throws Exception [inline] |
Test the getFirstLog after deletion of logs for LogBufferedFileCache
| Exception |
References com::cosylab::logging::client::cache::LogBufferedFileCache::add(), com::cosylab::logging::client::cache::LogBufferedFileCache::deleteLog(), com::cosylab::logging::client::cache::LogBufferedFileCache::getBufferSize(), com::cosylab::logging::client::cache::LogBufferedFileCache::getFirstLog(), and com::cosylab::logging::client::cache::LogBufferedFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testGetFirstLogLogFileCache | ( | ) | throws Exception [inline] |
Test the getFirstLog after deletion of logs for LogFileCache
| Exception |
References com::cosylab::logging::client::cache::LogFileCache::add(), com::cosylab::logging::client::cache::LogFileCache::deleteLog(), com::cosylab::logging::client::cache::LogFileCache::getFirstLog(), and com::cosylab::logging::client::cache::LogFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testGetLastLogLogBufferedFileCache | ( | ) | throws Exception [inline] |
Test the getLastLog after deletion of logs for LogBufferedFileCache
| Exception |
References com::cosylab::logging::client::cache::LogBufferedFileCache::add(), com::cosylab::logging::client::cache::LogBufferedFileCache::deleteLog(), com::cosylab::logging::client::cache::LogBufferedFileCache::getBufferSize(), com::cosylab::logging::client::cache::LogBufferedFileCache::getFirstLog(), com::cosylab::logging::client::cache::LogBufferedFileCache::getLastLog(), and com::cosylab::logging::client::cache::LogBufferedFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testGetLastLogLogFileCache | ( | ) | throws Exception [inline] |
Test the getLastLog after deletion of logs for LogFileCache
| Exception |
References com::cosylab::logging::client::cache::LogFileCache::add(), com::cosylab::logging::client::cache::LogFileCache::deleteLog(), com::cosylab::logging::client::cache::LogFileCache::getFirstLog(), com::cosylab::logging::client::cache::LogFileCache::getLastLog(), and com::cosylab::logging::client::cache::LogFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testLogBufferedFileCacheDelete | ( | ) | throws Exception [inline] |
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)
| Exception |
References com::cosylab::logging::client::cache::LogBufferedFileCache::add(), com::cosylab::logging::client::cache::LogBufferedFileCache::deleteLog(), com::cosylab::logging::client::cache::LogBufferedFileCache::getBufferSize(), com::cosylab::logging::engine::log::ILogEntry::getField(), com::cosylab::logging::client::cache::LogBufferedFileCache::getLog(), and com::cosylab::logging::client::cache::LogBufferedFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testLogCacheDelete | ( | ) | throws Exception [inline] |
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
References com::cosylab::logging::client::cache::LogCache::add(), com::cosylab::logging::client::cache::LogCache::deleteLog(), com::cosylab::logging::engine::log::ILogEntry::getField(), com::cosylab::logging::client::cache::LogCache::getLog(), and com::cosylab::logging::client::cache::LogMultiFileCache::getSize().
| void alma::acs::jlog::test::DeleteLogTest::testLogFileCacheDelete | ( | ) | throws Exception [inline] |
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
References com::cosylab::logging::client::cache::LogFileCache::add(), com::cosylab::logging::client::cache::LogFileCache::deleteLog(), com::cosylab::logging::engine::log::ILogEntry::getField(), com::cosylab::logging::client::cache::LogFileCache::getLog(), and com::cosylab::logging::client::cache::LogFileCache::getSize().
1.6.2