Public Member Functions | |
ComponentClientTestCase (String name) throws Exception | |
Protected Member Functions | |
void | runTest () throws Throwable |
void | setUp () throws Exception |
void | connectToManager () throws Exception |
String | getFullName () |
ContainerServices | getContainerServices () |
void | tearDown () throws Exception |
void | initRemoteLogging () |
LogReceiver | getLogReceiver () throws AcsJContainerServicesEx |
Protected Attributes | |
AcsCorba | acsCorba |
AcsManagerProxy | m_acsManagerProxy |
AcsLogger | m_logger |
String | m_managerLoc |
Private Attributes | |
ContainerServicesImpl | m_containerServices |
CleaningDaemonThreadFactory | m_threadFactory |
LogReceiver | logReceiver |
ManagerClient | managerClientImpl |
Client | m_managerClient |
String | m_namePrefix |
ACS.manager
).Provides the ContainerServices.
|
Subclasses must call this ctor.
|
|
Connects to the ACS Manager using AcsManagerProxy.
|
|
Gives access to the ContainerServices interface. This class plays the part of the role of the Java container that has to do with providing explicit services to the component, or test case respectively.
|
|
|
|
Gets a LogReceiver which can be used to verify log messages from both local and remote processes. The returned To receive logs from the log service, use either LogReceiver#getLogQueue() or LogReceiver#startCaptureLogs(java.io.PrintWriter).
|
|
Sets up the test client logger(s) to send log records to the remote log service. Only one attempt to connect to the remote logger is made. If it fails, remote logging will be disabled. Override this method to prevent remote logging. |
|
Executes a single test method. Stray exceptions are logged using the test logger, so that they show in system logs.
|
|
Starts CORBA in the client process and connects to the manager and logger.
Subclasses that override this method must call
Reimplemented in alma::acs::component::client::ClientWithLogReceiverTest, and alma::acs::component::client::ComponentClientTestCaseTest.
|
|
Releases all previously obtained components (using manager), logs out from the manager, and terminates the CORBA ORB.
Subclasses that override this method must call
Reimplemented in alma::acs::component::client::ClientWithLogReceiverTest, and alma::acs::component::client::ComponentClientTestCaseTest.
|
|
|
|
Reimplemented in alma::acs::component::client::ClientWithLogReceiverTest.
|
|
Special tests that need to call directly the manager API could use this proxy object. To be used sparingly, as we need to exercise (and extend if necessary) the regular classes such as ContainerServices. |
|
|
|
|
|
|
|
from property ACS.manager, or defaults to localhost |
|
|
|
|
|
|