ALMA Computing Group

alma::demo::client::XmlComponentClient Class Reference

JUnit test client for the XmlComponent. More...

List of all members.

Public Member Functions

 XmlComponentClient () throws Exception
void testSayHelloUsingHelloDemoComponent ()
 Makes sure the method sayHello() on the xmlcomponent returns a reply.
void testCreateObsProposal ()
 Makes sure the obs proposal exists and checks its entity id.
void testAddNewSchedBlocks ()
 Takes a hard-coded XML of a SchedBlock and sends it to addNewSchedBlocks.
void testXmlInOutMethod ()
void testException () throws Exception
 Throws an exception.

Protected Member Functions

void setUp () throws Exception

Private Member Functions

XmlEntityStruct createSchedBlockXml (boolean breakUnmarshaller)
 creates schedblock xml.

Private Attributes

XmlComponent m_xmlComp
XmlComponentJ m_xmlCompJ


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

Definition at line 46 of file XmlComponentClient.java.


Constructor & Destructor Documentation

alma::demo::client::XmlComponentClient::XmlComponentClient  )  throws Exception [inline]
 

Definition at line 55 of file XmlComponentClient.java.


Member Function Documentation

XmlEntityStruct alma::demo::client::XmlComponentClient::createSchedBlockXml boolean  breakUnmarshaller  )  [inline, private]
 

creates schedblock xml.

not fancy, always the same ID, but good enough for the test.Definition at line 127 of file XmlComponentClient.java.

Referenced by testAddNewSchedBlocks().

void alma::demo::client::XmlComponentClient::setUp  )  throws Exception [inline, protected]
 

Definition at line 60 of file XmlComponentClient.java.

References m_xmlComp, and m_xmlCompJ.

void alma::demo::client::XmlComponentClient::testAddNewSchedBlocks  )  [inline]
 

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

Definition at line 105 of file XmlComponentClient.java.

References createSchedBlockXml(), and m_xmlComp.

void alma::demo::client::XmlComponentClient::testCreateObsProposal  )  [inline]
 

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

Definition at line 88 of file XmlComponentClient.java.

References m_xmlCompJ.

void alma::demo::client::XmlComponentClient::testException  )  throws Exception [inline]
 

Throws an exception.

Exceptions:
Exception 
Definition at line 173 of file XmlComponentClient.java.

References m_xmlCompJ.

void alma::demo::client::XmlComponentClient::testSayHelloUsingHelloDemoComponent  )  [inline]
 

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

Definition at line 78 of file XmlComponentClient.java.

References m_xmlCompJ.

void alma::demo::client::XmlComponentClient::testXmlInOutMethod  )  [inline]
 

Definition at line 150 of file XmlComponentClient.java.

References m_xmlCompJ.


Member Data Documentation

XmlComponent alma::demo::client::XmlComponentClient::m_xmlComp [private]
 

Definition at line 49 of file XmlComponentClient.java.

Referenced by setUp(), and testAddNewSchedBlocks().

XmlComponentJ alma::demo::client::XmlComponentClient::m_xmlCompJ [private]
 

Definition at line 52 of file XmlComponentClient.java.

Referenced by setUp(), testCreateObsProposal(), testException(), testSayHelloUsingHelloDemoComponent(), and testXmlInOutMethod().


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