

Public Member Functions | |
| ArchiveConsumerTest () throws Exception | |
| void | testReceiveFor15Seconds () throws Exception |
| void | receive (Long a, String b, String c, Object d) |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Attributes | |
| ArchiveConsumer | m_consumer |
| int | count = 0 |
Currently this test is started via "acsStartJava junit.textui.TestRunner alma.demo.test.client.ArchiveConsumerTest", and then 3 seconds later the "archiveeventsSupplier" is run, which sends off events and terminates. Then TAT waits 30 seconds for this test to receive these events.
| alma::demo::test::client::ArchiveConsumerTest::ArchiveConsumerTest | ( | ) | throws Exception [inline] |
| managerLoc |
| Exception |
| void alma::demo::test::client::ArchiveConsumerTest::receive | ( | Long | a, | |
| String | b, | |||
| String | c, | |||
| Object | d | |||
| ) | [inline] |
References count, and alma::acs::component::client::ComponentClientTestCase::m_logger.
| void alma::demo::test::client::ArchiveConsumerTest::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.
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alma::acs::nc::Consumer::consumerReady(), alma::acs::component::client::ComponentClientTestCase::getContainerServices(), and m_consumer.
| void alma::demo::test::client::ArchiveConsumerTest::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.
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alma::acs::nc::Consumer::disconnect(), and m_consumer.
| void alma::demo::test::client::ArchiveConsumerTest::testReceiveFor15Seconds | ( | ) | throws Exception [inline] |
The types of events, as they get fired by the archiveeventsSupplier application, will be checked by TAT based on the output from receive(Long, String, String, Object).
References count.
int alma::demo::test::client::ArchiveConsumerTest::count = 0 [private] |
Referenced by receive(), and testReceiveFor15Seconds().
Referenced by setUp(), and tearDown().
1.6.2