

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 |
| alma::acs::jlog::test::zoom::FilesManagerTest::FilesManagerTest | ( | ) | [inline] |
| void alma::acs::jlog::test::zoom::FilesManagerTest::errorReceived | ( | String | xml | ) | [inline] |
Implements com::cosylab::logging::engine::ACS::ACSRemoteErrorListener.
| void alma::acs::jlog::test::zoom::FilesManagerTest::logEntryReceived | ( | ILogEntry | logEntry | ) | [inline] |
| void alma::acs::jlog::test::zoom::FilesManagerTest::setUp | ( | ) | throws Exception [inline, protected] |
References dateFormat, filesToRead, logsRead, and manager.
| void alma::acs::jlog::test::zoom::FilesManagerTest::tearDown | ( | ) | throws Exception [inline, protected] |
| void alma::acs::jlog::test::zoom::FilesManagerTest::testFolderName | ( | ) | throws Exception [inline] |
Check if the right folder is used for getting XML files
| 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
| 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()
| 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] |
IsoDateFormat alma::acs::jlog::test::zoom::FilesManagerTest::dateFormat = new IsoDateFormat() [private] |
The date format
Referenced by setUp(), and testGetFiles().
The number of files that the zoom engine will read
Referenced by setUp(), testGetAllLogs(), and zoomTotalFileToRead().
int alma::acs::jlog::test::zoom::FilesManagerTest::logsRead = 0 [private] |
The number of logs received
Referenced by logEntryReceived(), setUp(), and testGetAllLogs().
The object to test
Referenced by setUp(), testFolderName(), testGetAllLogs(), testGetFiles(), and testIsOperational().
1.6.2