Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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]
 

Method testFormat.

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.

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.

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


Member Data Documentation

AcsXMLLogFormatter alma::acs::logging::formatters::AcsLogFormatterTest::acsLogFormatter [private]
 

LogRecordCollectingLogger alma::acs::logging::formatters::AcsLogFormatterTest::collectingLogger [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:54 2009 for ACS Java API by doxygen 1.3.8