alma::acs::jlog::test::DeleteLogTest Class Reference

Inheritance diagram for alma::acs::jlog::test::DeleteLogTest:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::jlog::test::DeleteLogTest:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

A class to test the deletion of logs in the cache The test involves LogCache, LogBufferedFileCache and LogFileCache

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::jlog::test::DeleteLogTest::DeleteLogTest (  )  throws Exception [inline]

Constructor


Member Function Documentation

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]
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

Exceptions:
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.

Exceptions:
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

Exceptions:
Exception 
void alma::acs::jlog::test::DeleteLogTest::testDeleteLogsFromLogBufferedFileCache (  )  throws Exception [inline]
void alma::acs::jlog::test::DeleteLogTest::testDeleteLogsFromLogCache (  )  throws Exception [inline]
void alma::acs::jlog::test::DeleteLogTest::testDeleteLogsFromLogFileCache (  )  throws Exception [inline]
void alma::acs::jlog::test::DeleteLogTest::testGetFirstLogLogBufferedFileCache (  )  throws Exception [inline]
void alma::acs::jlog::test::DeleteLogTest::testGetFirstLogLogFileCache (  )  throws Exception [inline]
void alma::acs::jlog::test::DeleteLogTest::testGetLastLogLogBufferedFileCache (  )  throws Exception [inline]
void alma::acs::jlog::test::DeleteLogTest::testGetLastLogLogFileCache (  )  throws Exception [inline]
void alma::acs::jlog::test::DeleteLogTest::testLogBufferedFileCacheDelete (  )  throws Exception [inline]
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().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2