

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 |
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.
| void alma::acs::logging::formatters::AcsLogFormatterTest::setUp | ( | ) | throws Exception [inline, protected] |
| void alma::acs::logging::formatters::AcsLogFormatterTest::testFormat | ( | ) | [inline] |
Method testFormat.
References acsLogFormatter, and alma::acs::logging::formatters::AcsXMLLogFormatter::format().
| 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] |
References acsLogFormatter, alma::acs::testsupport::LogRecordCollectingLogger::clearLogRecords(), collectingLogger, alma::acs::logging::formatters::AcsXMLLogFormatter::format(), alma::acs::testsupport::LogRecordCollectingLogger::getCollectedLogRecords(), and alma::acs::testsupport::LogRecordCollectingLogger::log().
Referenced by setUp(), testFormat(), testFormatter(), testGetLevel(), testLogException(), and testLoggedParameters().
LogRecordCollectingLogger alma::acs::logging::formatters::AcsLogFormatterTest::collectingLogger [private] |
Referenced by setUp(), and testLoggedParameters().
1.6.2