Public Member Functions | Protected Member Functions

alma.demo.client.XmlComponentClient Class Reference

Inheritance diagram for alma.demo.client.XmlComponentClient:
alma.acs.component.client.ComponentClientTestCase

List of all members.

Public Member Functions

 XmlComponentClient () throws Exception
void testSayHelloUsingHelloDemoComponent ()
void testCreateObsProposal ()
void testAddNewSchedBlocks ()
void testXmlInOutMethod ()
void testException () throws Exception
void testReleaseComponent () throws Exception

Protected Member Functions

void setUp () throws Exception

Detailed Description

JUnit test client for the XmlComponent. Demonstrates the use of ComponentClientTestCase (which is the reason why we have it under /src), but also serves as a real unit test for the ACS framework.

Author:
hsommer Jan 15, 2003 10:22:15 AM

Constructor & Destructor Documentation

alma.demo.client.XmlComponentClient.XmlComponentClient (  )  throws Exception

Member Function Documentation

void alma.demo.client.XmlComponentClient.setUp (  )  throws Exception [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.container.ContainerServices.getComponent(), alma.acs.component.client.ComponentClientTestCase.getContainerServices(), and alma.acs.container.ContainerServices.getTransparentXmlWrapper().

void alma.demo.client.XmlComponentClient.testAddNewSchedBlocks (  ) 

Takes a hard-coded XML of a SchedBlock and sends it to addNewSchedBlocks.

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

void alma.demo.client.XmlComponentClient.testCreateObsProposal (  ) 

Makes sure the obs proposal exists and checks its entity id.

void alma.demo.client.XmlComponentClient.testException (  )  throws Exception

Throws an exception.

Exceptions:
Exception 

References alma.acs.exceptions.AcsJException.log(), and alma.acs.component.client.ComponentClientTestCase.m_logger.

void alma.demo.client.XmlComponentClient.testReleaseComponent (  )  throws Exception
void alma.demo.client.XmlComponentClient.testSayHelloUsingHelloDemoComponent (  ) 

Makes sure the method sayHello() on the xmlcomponent returns a reply.

void alma.demo.client.XmlComponentClient.testXmlInOutMethod (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties