alma::alarmsystem::source::test::FactoryTest Class Reference

Inheritance diagram for alma::alarmsystem::source::test::FactoryTest:
Inheritance graph
[legend]
Collaboration diagram for alma::alarmsystem::source::test::FactoryTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FactoryTest () throws Exception
void testNoALarmBranch () throws Exception
void testACSAS () throws Exception
void testCERNAS () throws Exception
void testWrongImplementationProp () throws Exception
void testFaultStateCreation () throws Exception
void testAlarmSourceCreation () throws Exception

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Private Attributes

String curDir = System.getProperty("user.dir")
JDAL jdal

Constructor & Destructor Documentation

alma::alarmsystem::source::test::FactoryTest::FactoryTest (  )  throws Exception [inline]

Member Function Documentation

void alma::alarmsystem::source::test::FactoryTest::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 jdal, and alma::acs::component::client::ComponentClientTestCase::m_acsManagerProxy.

void alma::alarmsystem::source::test::FactoryTest::tearDown (  )  throws Exception [inline, protected]
See also:
junit.framework.TestCase

Reimplemented from alma::acs::component::client::ComponentClientTestCase.

void alma::alarmsystem::source::test::FactoryTest::testACSAS (  )  throws Exception [inline]

Check if the ACS implementation of the AS is choosen when there ACS is in the CDB

Exceptions:
Exception 

References com::cosylab::CDB::JDALOperations::clear_cache_all(), curDir, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), and jdal.

void alma::alarmsystem::source::test::FactoryTest::testAlarmSourceCreation (  )  throws Exception [inline]
void alma::alarmsystem::source::test::FactoryTest::testCERNAS (  )  throws Exception [inline]

Check if the CERN implementation of the AS is choosen when there CERN is in the CDB

Exceptions:
Exception 

References com::cosylab::CDB::JDALOperations::clear_cache_all(), curDir, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), and jdal.

void alma::alarmsystem::source::test::FactoryTest::testFaultStateCreation (  )  throws Exception [inline]
void alma::alarmsystem::source::test::FactoryTest::testNoALarmBranch (  )  throws Exception [inline]

Check if the ACS implementation of the AS is chosen when there is no Alarm branch in the CDB

Exceptions:
Exception 

References com::cosylab::CDB::JDALOperations::clear_cache_all(), curDir, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), and jdal.

void alma::alarmsystem::source::test::FactoryTest::testWrongImplementationProp (  )  throws Exception [inline]

Check if the ACS implementation is used when the Implementation property is wrong

Exceptions:
Exception 

References com::cosylab::CDB::JDALOperations::clear_cache_all(), curDir, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), and jdal.


Member Data Documentation

String alma::alarmsystem::source::test::FactoryTest::curDir = System.getProperty("user.dir") [private]

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

Generated by  doxygen 1.6.2