alma::acs::logging::ClientLogManagerTest Class Reference

Collaboration diagram for alma::acs::logging::ClientLogManagerTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ClientLogManagerTest (String name)
void testLoggerStructure ()
void testLoggerNameUniqueness ()
void testShutdown ()
void testSuppressRemoteLoggingAndCheckGC () throws Exception
void testSuppressCorbaRemoteLogging ()
void testConfigureApplicationLogger ()

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Package Attributes

ClientLogManager clientLogManager
Logger m_logger = null

Private Member Functions

void assertLogLevels (AcsLogger logger, AcsLogLevelDefinition expectedLocalLevel, AcsLogLevelDefinition expectedRemoteLevel)

Detailed Description

Tests the class ClientLogManager, which creates and configures all ACS loggers.

Author:
hsommer

Constructor & Destructor Documentation

alma::acs::logging::ClientLogManagerTest::ClientLogManagerTest ( String  name  )  [inline]

Member Function Documentation

void alma::acs::logging::ClientLogManagerTest::assertLogLevels ( AcsLogger  logger,
AcsLogLevelDefinition  expectedLocalLevel,
AcsLogLevelDefinition  expectedRemoteLevel 
) [inline, private]

Checks that an AcsLogger has local and remote handlers configured with the correct levels.

Referenced by testConfigureApplicationLogger().

void alma::acs::logging::ClientLogManagerTest::setUp (  )  throws Exception [inline, protected]
void alma::acs::logging::ClientLogManagerTest::tearDown (  )  throws Exception [inline, protected]
void alma::acs::logging::ClientLogManagerTest::testConfigureApplicationLogger (  )  [inline]
void alma::acs::logging::ClientLogManagerTest::testLoggerNameUniqueness (  )  [inline]
void alma::acs::logging::ClientLogManagerTest::testLoggerStructure (  )  [inline]
void alma::acs::logging::ClientLogManagerTest::testShutdown (  )  [inline]
void alma::acs::logging::ClientLogManagerTest::testSuppressCorbaRemoteLogging (  )  [inline]
void alma::acs::logging::ClientLogManagerTest::testSuppressRemoteLoggingAndCheckGC (  )  throws Exception [inline]
  1. Logs stupid messages to a container logger, while ClientLogManager#initRemoteLogging(org.omg.CORBA.ORB, Manager, int, boolean) has not been called.
  2. Calls ClientLogManager#suppressRemoteLogging()
  3. Forces garbage collection, and verifies that the previously filled log record queue gets finalized within a reasonable time.
  4. While or after waiting for queue finalization, we log more messages to the same container logger, just to see that it doesn't fail (should be local-only).

The ClientLogManager shutdown called in method tearDown is an important part of this test.

Exceptions:
Exception 

References alma::acs::logging::ClientLogManager::getLoggerForContainer(), and alma::acs::logging::ClientLogManager::suppressRemoteLogging().


Member Data Documentation


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

Generated by  doxygen 1.6.2