alma::acs::logging::formatters::AcsLogFormatterTest Class Reference

Inheritance diagram for alma::acs::logging::formatters::AcsLogFormatterTest:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::formatters::AcsLogFormatterTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void testFormat ()
void testLogException ()
void testGetLevel ()
void testLoggedParameters ()
void testFormatter ()

Protected Member Functions

void setUp () throws Exception

Private Attributes

AcsXMLLogFormatter acsLogFormatter
LogRecordCollectingLogger collectingLogger

Detailed Description

Note that LogRecords are usually constructed inside of the log methods of class Logger; if we create them with new in the test routines, the class name and method name can't be figured out by LogRecord::inferCaller -- this failure has nothing to do with the normal limitations of this "best effort" feature.


Member Function Documentation

void alma::acs::logging::formatters::AcsLogFormatterTest::setUp (  )  throws Exception [inline, protected]
void alma::acs::logging::formatters::AcsLogFormatterTest::testFormat (  )  [inline]
void alma::acs::logging::formatters::AcsLogFormatterTest::testFormatter (  )  [inline]
void alma::acs::logging::formatters::AcsLogFormatterTest::testGetLevel (  )  [inline]

Method testGetLevel. Gets the string representing a level using getLogLevelDescription and compares it to the string representing the formatted log record.

References acsLogFormatter, and alma::acs::logging::formatters::AcsXMLLogFormatter::format().

void alma::acs::logging::formatters::AcsLogFormatterTest::testLogException (  )  [inline]

Assures that an exception which gets passed to the log method will show up as a <Data> element in the XML.

References acsLogFormatter, and alma::acs::logging::formatters::AcsXMLLogFormatter::format().

void alma::acs::logging::formatters::AcsLogFormatterTest::testLoggedParameters (  )  [inline]

Member Data Documentation

Referenced by setUp(), and testLoggedParameters().


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

Generated by  doxygen 1.6.2