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

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

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.


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 

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]
 

Gets the name of the container running (or configured to run) the component of the given name.


Member Data Documentation

AcsManagerProxy alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::adminProxy [private]
 

final ContainerServices alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::containerServices [private]
 

final AcsLogger alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::logger [private]
 

final AcsManagerProxy alma::contLogTest::TestLogLevelsCompImpl::ContainerTestUtil::managerProxy [private]
 


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