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

alma::acs::jlog::test::ErrorLogFileTest Class Reference

List of all members.

Public Member Functions

 ErrorLogFileTest () throws Exception
void testAppend () throws Exception
void testAppendTimeout () throws Exception
void testCopy () throws Exception
void testClear () throws Exception

Protected Member Functions

Override void setUp () throws Exception

Private Member Functions

boolean checkFile (String name, int numOfEntries, int firstEntryNum) throws Exception

Private Attributes

ErrorLogFile file
final int TIMEOUT = 15
final String str = "BaseString"

Constructor & Destructor Documentation

alma::acs::jlog::test::ErrorLogFileTest::ErrorLogFileTest  )  throws Exception [inline]
 

Constructor

Exceptions:
Exception 


Member Function Documentation

boolean alma::acs::jlog::test::ErrorLogFileTest::checkFile String  name,
int  numOfEntries,
int  firstEntryNum
throws Exception [inline, private]
 

Check the content of the file with the passed name. The correctness is ensured if the file exists, is readable and it is composed of passed number of entries.

Parameters:
name The name of the file
numOfEntries The number of entries in the file
firstEntryNum The number of the first entry in the file
Returns:
true If the content of the file is as expected

Override void alma::acs::jlog::test::ErrorLogFileTest::setUp  )  throws Exception [inline, protected]
 

void alma::acs::jlog::test::ErrorLogFileTest::testAppend  )  throws Exception [inline]
 

Test the append method

void alma::acs::jlog::test::ErrorLogFileTest::testAppendTimeout  )  throws Exception [inline]
 

Test the append method with a timeout

void alma::acs::jlog::test::ErrorLogFileTest::testClear  )  throws Exception [inline]
 

Test the clear method of the ErrorLogFile

Exceptions:
Exception 

void alma::acs::jlog::test::ErrorLogFileTest::testCopy  )  throws Exception [inline]
 

Test the copy method of the ErrorLogFile

Exceptions:
Exception 


Member Data Documentation

ErrorLogFile alma::acs::jlog::test::ErrorLogFileTest::file [private]
 

The object to test

final String alma::acs::jlog::test::ErrorLogFileTest::str = "BaseString" [private]
 

Each test writes this string plus an integer.

In this way it is possible to check the written file.

final int alma::acs::jlog::test::ErrorLogFileTest::TIMEOUT = 15 [private]
 

The timeout


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