

Public Member Functions | |
| ClientWithLogReceiverTest () throws Exception | |
| void | testInitialized () |
| void | testLogQueueNoDelay () throws Exception |
| void | testLogCapture () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Attributes | |
| LogReceiver | logReceiver |
Tests the alma.acs.logging.engine.LogReceiver obtained from alma.acs.component.client.ComponentClientTestCase#getLogReceiver().
| alma::acs::component::client::ClientWithLogReceiverTest::ClientWithLogReceiverTest | ( | ) | throws Exception [inline] |
| void alma::acs::component::client::ClientWithLogReceiverTest::setUp | ( | ) | throws Exception [inline, protected] |
Starts CORBA in the client process and connects to the manager and logger.
Subclasses that override this method must call super.setUp(), likely before any other code in that method.
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alma::acs::component::client::ComponentClientTestCase::getLogReceiver(), logReceiver, and alma::acs::component::client::ComponentClientTestCase::m_logger.
| void alma::acs::component::client::ClientWithLogReceiverTest::tearDown | ( | ) | throws Exception [inline, protected] |
Releases all previously obtained components (using manager), logs out from the manager, and terminates the CORBA ORB.
Subclasses that override this method must call super.tearDown(), likely after any other code in that method.
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
| void alma::acs::component::client::ClientWithLogReceiverTest::testInitialized | ( | ) | [inline] |
The log receiver is supposed to be initialized, since LogReceiver#initialize(org.omg.CORBA.ORB, si.ijs.maci.Manager)
References alma::acs::logging::engine::LogReceiver::isInitialized(), and logReceiver.
| void alma::acs::component::client::ClientWithLogReceiverTest::testLogCapture | ( | ) | throws Exception [inline] |
References alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::acs::logging::engine::LogReceiver::getDelayMillis(), alma::acs::logging::AcsLogger::log(), logReceiver, alma::acs::component::client::ComponentClientTestCase::m_logger, alma::acs::logging::engine::LogReceiver::startCaptureLogs(), and alma::acs::logging::engine::LogReceiver::stopCaptureLogs().
| void alma::acs::component::client::ClientWithLogReceiverTest::testLogQueueNoDelay | ( | ) | throws Exception [inline] |
Logs a single record and waits for it to come back from the Log service and to pass the queue (which is set to zero delay). Then the record is verified, and the same test is repeated a couple of times with different log records.
| Exception |
References alma::acs::logging::config::LogConfig::getDefaultMinLogLevel(), alma::acs::logging::config::LogConfig::getFlushPeriodSeconds(), alma::acs::logging::engine::LogReceiver::getLogQueue(), alma::acs::logging::engine::LogReceiver::DelayedLogEntry::getLogRecord(), alma::acs::logging::engine::LogReceiver::DelayedLogEntry::isQueuePoison, alma::acs::logging::AcsLogger::log(), logReceiver, alma::acs::component::client::ComponentClientTestCase::m_logger, alma::acs::logging::engine::LogReceiver::setDelayMillis(), and alma::acs::logging::engine::LogReceiver::stop().
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
Referenced by setUp(), testInitialized(), testLogCapture(), and testLogQueueNoDelay().
1.6.2