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

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

List of all members.

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

Constructor & Destructor Documentation

alma::acs::jlog::test::zoom::FileHelperTest::FileHelperTest (  )  [inline]

Member Function Documentation

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.

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

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]
See also:
junit.framework.TestCase::setUp()

References testFile, and xmlFileName.

void alma::acs::jlog::test::zoom::FileHelperTest::tearDown (  )  throws Exception [inline, protected]
See also:
junit.framework.TestCase::tearDown()
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.


Member Data Documentation

The FileHelper to test.

Referenced by testLoadAll(), testLoadFilterAll(), testLoadLevelRange(), and testLoadTimelRange().

The file to read for testing

Referenced by setUp(), testLoadAll(), testLoadFilterAll(), testLoadLevelRange(), and testLoadTimelRange().

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().


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

Generated by  doxygen 1.6.2