alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil Class Reference

Collaboration diagram for alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ContainerTestUtil (ContainerServices cs, AcsManagerProxy managerProxy)
void loginToManager () throws AcsJContainerEx
void logoutFromManager ()
LoggingConfigurable getContainerLoggingIF (String containerName) throws AcsJContainerEx, NoPermissionEx
String resolveContainerName (String componentName) throws AcsJContainerEx, NoPermissionEx
List< ContainerInfogetAllContainerInfos () throws NoPermissionEx, AcsJContainerEx

Private Attributes

final ContainerServices containerServices
final AcsLogger logger
final AcsManagerProxy managerProxy
AcsManagerProxy adminProxy

Detailed Description

Provides container access to JUnit tests. Uses JUnit asserts from Assert which means that runtime exceptions such as AssertionFailedError may be thrown.

Author:
hsommer

Constructor & Destructor Documentation

alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::ContainerTestUtil ( ContainerServices  cs,
AcsManagerProxy  managerProxy 
) [inline]

The constructor only stores the parameters. You must call loginToManager() explicitly before using the other methods. Make sure to call logoutFromManager() when done.

References containerServices, alma::acs::container::ContainerServicesBase::getLogger(), and logger.


Member Function Documentation

List<ContainerInfo> alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::getAllContainerInfos (  )  throws NoPermissionEx, AcsJContainerEx [inline]
LoggingConfigurable alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::getContainerLoggingIF ( String  containerName  )  throws AcsJContainerEx, NoPermissionEx [inline]

Gets a reference to the LoggingConfigurableOperations interface of a container with a given name.

Note that only in test code like here we are allowed to talk directly with the manager. For operational code, the ContainerServices methods must be used and extended if necessary.

Parameters:
containerName 

References getAllContainerInfos().

Referenced by alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::testGetLevels(), and alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompTest::testLoggingConfigurableCentralLogLevels().

void alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::loginToManager (  )  throws AcsJContainerEx [inline]
void alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::logoutFromManager (  )  [inline]
String alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::resolveContainerName ( String  componentName  )  throws AcsJContainerEx, NoPermissionEx [inline]

Member Data Documentation

Referenced by loginToManager().


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

Generated by  doxygen 1.6.2