

Public Member Functions | |
| ACSCategoryDAOTest () throws Exception | |
| void | setUp () throws Exception |
| void | testLoadCategory () throws Exception |
| void | testGetCategoryByID () throws Exception |
| void | testGetRoot () throws Exception |
| void | testRootChilds () throws Exception |
| void | testDeleteCategory () throws Exception |
| void | testFindAllCategories () throws Exception |
| void | testGettingCategories () throws Exception |
| void | testGetChilds () throws Exception |
| void | testUpdateCategory () |
Private Attributes | |
| ACSCategoryDAOImpl | categoryDAO |
| ACSAlarmDAOImpl | alarmDAO |
| com::cosylab::acs::alarm::ACSCategoryDAOTest::ACSCategoryDAOTest | ( | ) | throws Exception [inline] |
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::setUp | ( | ) | throws Exception [inline] |
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 alarmDAO, categoryDAO, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setConfAccessor(), and com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::setConfAccessor().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testDeleteCategory | ( | ) | throws Exception [inline] |
Test the deletion of a category
| Exception |
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::deleteCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getAllCategoryIDs(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategoryByPath(), and cern::laser::business::data::Category::getCategoryId().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testFindAllCategories | ( | ) | throws Exception [inline] |
Test the find all categories
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::findAllCategories(), and com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getAllCategoryIDs().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testGetCategoryByID | ( | ) | throws Exception [inline] |
Test the getting of categories by their IDs and PATHS
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getAllCategoryIDs(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategoryByPath(), and cern::laser::business::data::Category::getPath().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testGetChilds | ( | ) | throws Exception [inline] |
Test if getting children works
| Exception |
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getAllCategoryIDs(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), and com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getChildren().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testGetRoot | ( | ) | throws Exception [inline] |
Get the ROOT category
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategoryByPath(), cern::laser::business::data::Category::getName(), cern::laser::business::data::Category::getParentId(), cern::laser::business::data::Category::getPath(), and cern::laser::business::data::Category::isLeaf().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testGettingCategories | ( | ) | throws Exception [inline] |
Test findCategory and getCategory
| Exception |
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::findCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategoryByPath(), and cern::laser::business::data::Category::getCategoryId().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testLoadCategory | ( | ) | throws Exception [inline] |
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getAllCategoryIDs(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategory(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::Category::getDescription(), cern::laser::business::data::Category::getName(), and cern::laser::business::data::Category::getPath().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testRootChilds | ( | ) | throws Exception [inline] |
Check that all the categories are child of ROOT
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getAllCategoryIDs(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::Category::getParentId(), and cern::laser::business::data::Category::isLeaf().
| void com::cosylab::acs::alarm::ACSCategoryDAOTest::testUpdateCategory | ( | ) | [inline] |
Test if updating a category works
References categoryDAO, com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getAllCategoryIDs(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::getCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::Category::getDefinition(), cern::laser::business::data::Category::setDefinition(), cern::laser::business::definition::data::CategoryDefinition::setDescription(), and com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::updateCategory().
Referenced by setUp().
1.6.2