alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest Class Reference

Inheritance diagram for alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest:
Inheritance graph
[legend]
Collaboration diagram for alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TestLogLevelsCompTest () throws Exception
void testGetLevels () throws Exception
void testLoggingConfigurableCentralLogLevels () throws Exception

Static Public Member Functions

static void main (String[] args)

Static Public Attributes

static final String PROPERTYNAME_COMPONENTNAMES = "TEST_COMP_NAMES"

Protected Member Functions

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

Private Attributes

Set< String > componentNames = new LinkedHashSet<String>()
List< TestLogLevelsCompcomponents
ContainerTestUtil containerTestUtil

Detailed Description

Requires Java component "TESTLOG1" of type alma.contLogTest.TestLogLevelsComp to be running.

Author:
eallaert 30 October 2007

Constructor & Destructor Documentation

alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::TestLogLevelsCompTest (  )  throws Exception [inline]
Exceptions:
java.lang.Exception 

Member Function Documentation

static void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::main ( String[]  args  )  [inline, static]
void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::setUp (  )  throws Exception [inline, protected]
void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::tearDown (  )  throws Exception [inline, protected]
void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::testGetLevels (  )  throws Exception [inline]
void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::testLoggingConfigurableCentralLogLevels (  )  throws Exception [inline]

This test uses the LoggingConfigurable interface implemented by all containers to set log levels These log levels are then expected to be independent of the initial CDB settings, according to precedence rules. The test verifies that the levels are applied correctly by commanding the test components to log messages at various log levels. The test listens on the Log service to compare the messages actually sent with what is expected for the current log level settings.

References alma::contLogTest::TestLogLevelsCompImpl::LogSeriesExpectant::awaitLogRecords(), alma::contLogTest::TestLogLevelsCompImpl::LogSeriesExpectant::clearLogs(), components, containerTestUtil, si::ijs::maci::LoggingConfigurableOperations::get_logLevels(), alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::getContainerLoggingIF(), alma::acs::component::client::ComponentClientTestCase::getLogReceiver(), alma::acs::component::client::ComponentClientTestCase::m_logger, alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::resolveContainerName(), si::ijs::maci::LoggingConfigurableOperations::set_default_logLevels(), and si::ijs::maci::LoggingConfigurableOperations::set_logLevels().


Member Data Documentation

Set<String> alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::componentNames = new LinkedHashSet<String>() [private]

Referenced by setUp(), and tearDown().

Referenced by setUp().


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

Generated by  doxygen 1.6.2