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

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

List of all members.

Public Member Functions

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

Protected Member Functions

void setUp () throws Exception
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

void alma::acs::jlog::test::zoom::FilesManagerTest::errorReceived ( String  xml  )  [inline]
void alma::acs::jlog::test::zoom::FilesManagerTest::logEntryReceived ( ILogEntry  logEntry  )  [inline]
void alma::acs::jlog::test::zoom::FilesManagerTest::setUp (  )  throws Exception [inline, protected]
See also:
junit.framework.TestCase::setUp()

References dateFormat, filesToRead, logsRead, and manager.

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 

References alma::acs::logging::archive::zoom::FilesManager::filesFolder, and manager.

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.

References filesToRead, alma::acs::logging::archive::zoom::FilesManager::getLogs(), logsRead, and manager.

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

Test the selection of files with a given interval

Exceptions:
Exception 

References dateFormat, alma::acs::logging::archive::zoom::FilesManager::getFileList(), and manager.

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

Test isOperational()

Exceptions:
Exception 

References alma::acs::logging::archive::zoom::FilesManager::isOperational(), and manager.

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

Member Data Documentation

The date format

Referenced by setUp(), and testGetFiles().

The number of files that the zoom engine will read

Referenced by setUp(), testGetAllLogs(), and zoomTotalFileToRead().

The number of logs received

Referenced by logEntryReceived(), setUp(), and testGetAllLogs().

The object to test

Referenced by setUp(), testFolderName(), testGetAllLogs(), testGetFiles(), and testIsOperational().


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

Generated by  doxygen 1.6.2