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 |
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 |
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.
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.
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 | ( | ) |