alma::acs::container::corba::AcsCorbaTestWithContainer Class Reference

Inheritance diagram for alma::acs::container::corba::AcsCorbaTestWithContainer:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::container::corba::AcsCorbaTestWithContainer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AcsCorbaTestWithContainer () throws Exception
void testParallelCalls () throws Exception
void testComponentPOALifecycleAsync () throws Exception

Protected Member Functions

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

Private Member Functions

void _testComponentPOALifecycle (boolean destroyWhileBusy, int iterations) throws Exception

Private Attributes

DummyComponent dummyComponent
volatile Throwable exceptionInThread

Static Private Attributes

static final String DUMMYCOMP_TYPENAME = "IDL:alma/jconttest/DummyComponent:1.0"

Detailed Description

Tests alma.acs.container.corba.AcsCorba and related usage of ORB and POAs. Requires ACS runtime with a remote container.

Author:
hsommer
See also:
alma.acs.container.corba.AcsCorbaTest

Constructor & Destructor Documentation

alma::acs::container::corba::AcsCorbaTestWithContainer::AcsCorbaTestWithContainer (  )  throws Exception [inline]

Member Function Documentation

void alma::acs::container::corba::AcsCorbaTestWithContainer::_testComponentPOALifecycle ( boolean  destroyWhileBusy,
int  iterations 
) throws Exception [inline, private]
void alma::acs::container::corba::AcsCorbaTestWithContainer::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.

See also:
junit.framework.TestCase::setUp()

Reimplemented from alma::acs::component::client::ComponentClientTestCase.

void alma::acs::container::corba::AcsCorbaTestWithContainer::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.

See also:
junit.framework.TestCase::tearDown()

Reimplemented from alma::acs::component::client::ComponentClientTestCase.

References alma::acs::component::client::ComponentClientTestCase::m_logger.

void alma::acs::container::corba::AcsCorbaTestWithContainer::testComponentPOALifecycleAsync (  )  throws Exception [inline]

Activates / deactivates a component 10 times, each time calling a method that still runs while its POA is getting deactivated. The purpose is to check the container's ability to wait for currently processing requests to terminate, before cleanUp is called on the component.

TODO: extend this scenario so that another collocated component issues the long lasting call. This may not work due to a JacORB bug, which we should find out about. Confer the currently disabled test alma.acs.container.corba.AcsCorbaTest#__testComponentPOALifecycleAsync().

Exceptions:
Exception 

References _testComponentPOALifecycle().

void alma::acs::container::corba::AcsCorbaTestWithContainer::testParallelCalls (  )  throws Exception [inline]

Member Data Documentation

final String alma::acs::container::corba::AcsCorbaTestWithContainer::DUMMYCOMP_TYPENAME = "IDL:alma/jconttest/DummyComponent:1.0" [static, private]

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

Generated by  doxygen 1.6.2