

Public Member Functions | |
| XmlComponentClient () throws Exception | |
| void | testSayHelloUsingHelloDemoComponent () |
| void | testCreateObsProposal () |
| void | testAddNewSchedBlocks () |
| void | testXmlInOutMethod () |
| void | testException () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
Private Member Functions | |
| XmlEntityStruct | createSchedBlockXml (boolean breakUnmarshaller) |
Private Attributes | |
| XmlComponent | m_xmlComp |
| XmlComponentJ | m_xmlCompJ |
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.
| alma::demo::client::XmlComponentClient::XmlComponentClient | ( | ) | throws Exception [inline] |
| 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.
References alma::xmlentity::XmlEntityStruct::entityId, alma::xmlentity::XmlEntityStruct::entityTypeName, alma::xmlentity::XmlEntityStruct::schemaVersion, alma::xmlentity::XmlEntityStruct::timeStamp, and alma::xmlentity::XmlEntityStruct::xmlString.
Referenced by testAddNewSchedBlocks().
| void alma::demo::client::XmlComponentClient::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::container::ContainerServices::getComponent(), alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::acs::container::ContainerServices::getTransparentXmlComponent(), 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.
References alma::demo::XmlComponentOperations::addNewSchedBlocks(), createSchedBlockXml(), alma::acs::component::client::ComponentClientTestCase::m_logger, and m_xmlComp.
| void alma::demo::client::XmlComponentClient::testCreateObsProposal | ( | ) | [inline] |
Makes sure the obs proposal exists and checks its entity id.
References alma::demo::XmlComponentJ::createObsProposal(), and m_xmlCompJ.
| void alma::demo::client::XmlComponentClient::testException | ( | ) | throws Exception [inline] |
Throws an exception.
| Exception |
References alma::demo::XmlComponentJ::exceptionMethod(), alma::acs::exceptions::AcsJException::log(), alma::acs::component::client::ComponentClientTestCase::m_logger, and m_xmlCompJ.
| void alma::demo::client::XmlComponentClient::testSayHelloUsingHelloDemoComponent | ( | ) | [inline] |
Makes sure the method sayHello() on the xmlcomponent returns a reply.
References m_xmlCompJ, and alma::demo::XmlComponentJ::sayHello().
| void alma::demo::client::XmlComponentClient::testXmlInOutMethod | ( | ) | [inline] |
Referenced by setUp(), and testAddNewSchedBlocks().
Referenced by setUp(), testCreateObsProposal(), testException(), testSayHelloUsingHelloDemoComponent(), and testXmlInOutMethod().
1.6.2