Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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]
 

Check the content of the cache (LogCache)

Exceptions:
Exception 

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]
 

Test the deletion of a collection of logs from LogBufferedFileCache

Exceptions:
Exception 

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

Test the deletion of a collection of logs from LogCache

Exceptions:
Exception 

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

Test the deletion of a collection of logs from LogFileCache

Exceptions:
Exception 

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

Test the getFirstLog after deletion of logs for LogBufferedFileCache

Exceptions:
Exception 

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

Test the getFirstLog after deletion of logs for LogFileCache

Exceptions:
Exception 

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

Test the getLastLog after deletion of logs for LogBufferedFileCache

Exceptions:
Exception 

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

Test the getLastLog after deletion of logs for LogFileCache

Exceptions:
Exception 

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)

Exceptions:
Exception 

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

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


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:35 2009 for ACS Java API by doxygen 1.3.8