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

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

Protected Member Functions

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

Package Attributes

ClientLogManager clientLogManager
Logger m_logger = null

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::setUp  )  throws Exception [inline, protected]
 

void alma::acs::logging::ClientLogManagerTest::tearDown  )  throws Exception [inline, protected]
 

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 


Member Data Documentation

ClientLogManager alma::acs::logging::ClientLogManagerTest::clientLogManager [package]
 

Logger alma::acs::logging::ClientLogManagerTest::m_logger = null [package]
 


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