

Public Member Functions | |
| FileHelperTest () | |
| void | errorReceived (String xml) |
| void | logEntryReceived (ILogEntry logEntry) |
| void | bytesRead (long bytes) |
| void | bytesWritten (long bytes) |
| void | logsRead (int numOfLogs) |
| void | logsWritten (int numOfLogs) |
| void | testLoadAll () throws Exception |
| void | testLoadLevelRange () throws Exception |
| void | testLoadTimelRange () throws Exception |
| void | testLoadFilterAll () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Attributes | |
| File | testFile |
| FileHelper | fileHelper |
| int | numOfLogsRead |
Static Private Attributes | |
| static final String | xmlFileName = "logOutput2008-09-19T11_21_49.212--2008-09-19T11_21_49.670.xml" |
| static final int | totalLogsInFile = 202 |
| alma::acs::jlog::test::zoom::FileHelperTest::FileHelperTest | ( | ) | [inline] |
| void alma::acs::jlog::test::zoom::FileHelperTest::bytesRead | ( | long | bytes | ) | [inline] |
| void alma::acs::jlog::test::zoom::FileHelperTest::bytesWritten | ( | long | bytes | ) | [inline] |
| void alma::acs::jlog::test::zoom::FileHelperTest::errorReceived | ( | String | xml | ) | [inline] |
Print a message in the standard output: the error will be visible thanks to tat.
Implements com::cosylab::logging::engine::ACS::ACSRemoteErrorListener.
| void alma::acs::jlog::test::zoom::FileHelperTest::logEntryReceived | ( | ILogEntry | logEntry | ) | [inline] |
| void alma::acs::jlog::test::zoom::FileHelperTest::logsRead | ( | int | numOfLogs | ) | [inline] |
| void alma::acs::jlog::test::zoom::FileHelperTest::logsWritten | ( | int | numOfLogs | ) | [inline] |
| void alma::acs::jlog::test::zoom::FileHelperTest::setUp | ( | ) | throws Exception [inline, protected] |
References testFile, and xmlFileName.
| void alma::acs::jlog::test::zoom::FileHelperTest::tearDown | ( | ) | throws Exception [inline, protected] |
| void alma::acs::jlog::test::zoom::FileHelperTest::testLoadAll | ( | ) | throws Exception [inline] |
Test loading with no times and no levels restrictions
References fileHelper, alma::acs::logging::archive::zoom::FileHelper::loadLogs(), numOfLogsRead, testFile, and totalLogsInFile.
| void alma::acs::jlog::test::zoom::FileHelperTest::testLoadFilterAll | ( | ) | throws Exception [inline] |
Test the loading of logs between a defined time interval and a definit log level interval
References fileHelper, alma::acs::logging::archive::zoom::FileHelper::loadLogs(), numOfLogsRead, and testFile.
| void alma::acs::jlog::test::zoom::FileHelperTest::testLoadLevelRange | ( | ) | throws Exception [inline] |
Test the loading of logs between a defined range of levels
References fileHelper, alma::acs::logging::archive::zoom::FileHelper::loadLogs(), numOfLogsRead, and testFile.
| void alma::acs::jlog::test::zoom::FileHelperTest::testLoadTimelRange | ( | ) | throws Exception [inline] |
Test the loading of logs between a defined time interval
References fileHelper, alma::acs::logging::archive::zoom::FileHelper::loadLogs(), numOfLogsRead, and testFile.
The FileHelper to test.
Referenced by testLoadAll(), testLoadFilterAll(), testLoadLevelRange(), and testLoadTimelRange().
Number of logs read
Referenced by logEntryReceived(), testLoadAll(), testLoadFilterAll(), testLoadLevelRange(), and testLoadTimelRange().
File alma::acs::jlog::test::zoom::FileHelperTest::testFile [private] |
The file to read for testing
Referenced by setUp(), testLoadAll(), testLoadFilterAll(), testLoadLevelRange(), and testLoadTimelRange().
final int alma::acs::jlog::test::zoom::FileHelperTest::totalLogsInFile = 202 [static, private] |
Total number of logs in the XML xmlFileName
Referenced by testLoadAll().
final String alma::acs::jlog::test::zoom::FileHelperTest::xmlFileName = "logOutput2008-09-19T11_21_49.212--2008-09-19T11_21_49.670.xml" [static, private] |
The xml file used for testing
Referenced by setUp().
1.6.2