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

alma::acs::jlog::test::zoom::FilesManagerTest Class Reference

List of all members.

Public Member Functions

Override void logEntryReceived (ILogEntry logEntry)
 FilesManagerTest ()
void testFolderName () throws Exception
void testGetFiles () throws Exception
void testIsOperational () throws Exception
Override void errorReceived (String xml)
void testGetAllLogs () throws Exception
Override void zoomReadingFile (int num)
Override void zoomTotalFileToRead (int num)

Protected Member Functions

Override void setUp () throws Exception
Override void tearDown () throws Exception

Private Attributes

IsoDateFormat dateFormat = new IsoDateFormat()
FilesManager manager
int logsRead = 0
int filesToRead

Constructor & Destructor Documentation

alma::acs::jlog::test::zoom::FilesManagerTest::FilesManagerTest  )  [inline]
 


Member Function Documentation

Override void alma::acs::jlog::test::zoom::FilesManagerTest::errorReceived String  xml  )  [inline]
 

See also:
com.cosylab.logging.engine.ACS.ACSRemoteErrorListener::errorReceived(java.lang.String)

Override void alma::acs::jlog::test::zoom::FilesManagerTest::logEntryReceived ILogEntry  logEntry  )  [inline]
 

See also:
com.cosylab.logging.engine.ACS.ACSRemoteLogListener::logEntryReceived(com.cosylab.logging.engine.log.ILogEntry)

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

See also:
junit.framework.TestCase#setUp()

Override void alma::acs::jlog::test::zoom::FilesManagerTest::tearDown  )  throws Exception [inline, protected]
 

See also:
junit.framework.TestCase#tearDown()

void alma::acs::jlog::test::zoom::FilesManagerTest::testFolderName  )  throws Exception [inline]
 

Check if the right folder is used for getting XML files

Exceptions:
Exception 

void alma::acs::jlog::test::zoom::FilesManagerTest::testGetAllLogs  )  throws Exception [inline]
 

Test the getting of logs with no constraints so the engine should return all the logs of all the files in the folder

We do not need to test other cases because the generation of the list of the files to read is tested in testGetFiles for all possible cases.
This method checks if all the logs read from all the files are sent to the listener.

void alma::acs::jlog::test::zoom::FilesManagerTest::testGetFiles  )  throws Exception [inline]
 

Test the selection of files with a given interval

Exceptions:
Exception 

void alma::acs::jlog::test::zoom::FilesManagerTest::testIsOperational  )  throws Exception [inline]
 

Test isOperational()

Exceptions:
Exception 

Override void alma::acs::jlog::test::zoom::FilesManagerTest::zoomReadingFile int  num  )  [inline]
 

See also:
alma.acs.logging.archive.zoom.ZoomProgressListener::zoomReadingFile(int)

Override void alma::acs::jlog::test::zoom::FilesManagerTest::zoomTotalFileToRead int  num  )  [inline]
 

See also:
alma.acs.logging.archive.zoom.ZoomProgressListener::zoomTotalFileToRead(int)


Member Data Documentation

IsoDateFormat alma::acs::jlog::test::zoom::FilesManagerTest::dateFormat = new IsoDateFormat() [private]
 

The date format

int alma::acs::jlog::test::zoom::FilesManagerTest::filesToRead [private]
 

The number of files that the zoom engine will read

int alma::acs::jlog::test::zoom::FilesManagerTest::logsRead = 0 [private]
 

The number of logs received

FilesManager alma::acs::jlog::test::zoom::FilesManagerTest::manager [private]
 

The object to test


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