alma::demo::test::client::ArchiveConsumerTest Class Reference

Inheritance diagram for alma::demo::test::client::ArchiveConsumerTest:
Inheritance graph
[legend]
Collaboration diagram for alma::demo::test::client::ArchiveConsumerTest:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

alma::demo::test::client::ArchiveConsumerTest::ArchiveConsumerTest (  )  throws Exception [inline]
Parameters:
managerLoc 
Exceptions:
Exception 

Member Function Documentation

void alma::demo::test::client::ArchiveConsumerTest::receive ( Long  a,
String  b,
String  c,
Object  d 
) [inline]
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.

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

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.

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

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.


Member Data Documentation

Referenced by receive(), and testReceiveFor15Seconds().

Referenced by setUp(), and tearDown().


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

Generated by  doxygen 1.6.2