

Public Member Functions | |
| ConsumerWithComponentClientTestCaseTest () throws Exception | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
| void | testNoOp1 () throws Exception |
| void | testNoOp2 () throws Exception |
Private Member Functions | |
| void | channelUp () throws AcsJException, InterruptedException |
| void | channelDown () throws AcsJException |
| boolean | namingBindingsContain (String firstBindingName) throws AcsJException |
Private Attributes | |
| Helper | ncHelper |
| EventChannel | channel |
Static Private Attributes | |
| static final String | channelName = "dummyTestChannel" |
This test should investigate why the ComponentClientTestCase environment fails to create and destroy a notification channel repeatedly.
This problem first showed up in ACSLaser/laser-source when modular tests were converted from (TestCase using ComponentClient) to ComponentClientTestCase. There the Consumer class could not be reinstantiated after a previous test had disconnected the Consumer.
| alma::acs::nc::ConsumerWithComponentClientTestCaseTest::ConsumerWithComponentClientTestCaseTest | ( | ) | throws Exception [inline] |
| void alma::acs::nc::ConsumerWithComponentClientTestCaseTest::channelDown | ( | ) | throws AcsJException [inline, private] |
References channel, channelName, alma::acs::nc::Helper::destroyNotificationChannel(), namingBindingsContain(), and ncHelper.
Referenced by tearDown(), and testNoOp1().
| void alma::acs::nc::ConsumerWithComponentClientTestCaseTest::channelUp | ( | ) | throws AcsJException, InterruptedException [inline, private] |
| boolean alma::acs::nc::ConsumerWithComponentClientTestCaseTest::namingBindingsContain | ( | String | firstBindingName | ) | throws AcsJException [inline, private] |
References alma::acs::nc::Helper::getNamingService(), and ncHelper.
Referenced by channelDown().
| void alma::acs::nc::ConsumerWithComponentClientTestCaseTest::setUp | ( | ) | throws Exception [inline] |
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 channelUp().
| void alma::acs::nc::ConsumerWithComponentClientTestCaseTest::tearDown | ( | ) | throws Exception [inline] |
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.
References channelDown(), and alma::acs::component::client::ComponentClientTestCase::m_logger.
| void alma::acs::nc::ConsumerWithComponentClientTestCaseTest::testNoOp1 | ( | ) | throws Exception [inline] |
| void alma::acs::nc::ConsumerWithComponentClientTestCaseTest::testNoOp2 | ( | ) | throws Exception [inline] |
This method will never be called because the second setUp() call will hang in channelUp
References alma::acs::component::client::ComponentClientTestCase::m_logger.
EventChannel alma::acs::nc::ConsumerWithComponentClientTestCaseTest::channel [private] |
Referenced by channelDown(), channelUp(), and testNoOp1().
final String alma::acs::nc::ConsumerWithComponentClientTestCaseTest::channelName = "dummyTestChannel" [static, private] |
Referenced by channelDown(), and channelUp().
Referenced by channelDown(), channelUp(), and namingBindingsContain().
1.6.2