

Public Member Functions | |
| AlarmUserTest (String arg0) | |
| void | setUp () |
| void | tearDown () throws LaserConsoleException |
| void | notestUserHandler () throws LaserConsoleException |
| void | notestUserConfiguration () throws LaserConsoleException |
Private Member Functions | |
| boolean | compareCommentedAlarmMap (CommentedAlarmMap cam1, CommentedAlarmMap map) |
Private Attributes | |
| final String | USER_PREFIX = "test_user" |
| final int | NUM_OF_USERS = 15 |
| final String | PASSWORD = "password" |
| final String | CONFIG_PREFIX = "test_config" |
| final int | NUM_OF_CONFIGS = 15 |
| final String | COMMENT_PREFIX = "test_comment" |
Test the functionality for user management of the LASER system.
| com::cosylab::acs::alarm::AlarmUserTest::AlarmUserTest | ( | String | arg0 | ) | [inline] |
| boolean com::cosylab::acs::alarm::AlarmUserTest::compareCommentedAlarmMap | ( | CommentedAlarmMap | cam1, | |
| CommentedAlarmMap | map | |||
| ) | [inline, private] |
| void com::cosylab::acs::alarm::AlarmUserTest::notestUserConfiguration | ( | ) | throws LaserConsoleException [inline] |
References COMMENT_PREFIX, compareCommentedAlarmMap(), CONFIG_PREFIX, cern::laser::console::User::createConfiguration(), cern::laser::console::UserHandler::createUser(), cern::laser::console::Configuration::getAcknowledged(), cern::laser::console::User::getConfiguration(), NUM_OF_CONFIGS, PASSWORD, cern::laser::console::CommentedAlarmMap::put(), cern::laser::console::UserHandler::removeUser(), cern::laser::console::Configuration::setAcknowledged(), and USER_PREFIX.
| void com::cosylab::acs::alarm::AlarmUserTest::notestUserHandler | ( | ) | throws LaserConsoleException [inline] |
Test creation and removal of users via the UserHandler interface.
| LaserConsoleException | Should not happen. |
References cern::laser::console::UserHandler::createUser(), cern::laser::console::User::getName(), cern::laser::console::User::getPassword(), cern::laser::console::UserHandler::getUser(), cern::laser::console::UserHandler::getUsers(), NUM_OF_USERS, PASSWORD, cern::laser::console::UserHandler::removeUser(), cern::laser::console::User::setPassword(), and USER_PREFIX.
| void com::cosylab::acs::alarm::AlarmUserTest::setUp | ( | ) | [inline] |
Set-up the test. Defines the default host of the LASER server.
| void com::cosylab::acs::alarm::AlarmUserTest::tearDown | ( | ) | throws LaserConsoleException [inline] |
Tear-down the test. Removes all the users that have been created during the test.
References NUM_OF_USERS, cern::laser::console::UserHandler::removeUser(), and USER_PREFIX.
final String com::cosylab::acs::alarm::AlarmUserTest::COMMENT_PREFIX = "test_comment" [private] |
Referenced by notestUserConfiguration().
final String com::cosylab::acs::alarm::AlarmUserTest::CONFIG_PREFIX = "test_config" [private] |
Referenced by notestUserConfiguration().
final int com::cosylab::acs::alarm::AlarmUserTest::NUM_OF_CONFIGS = 15 [private] |
Referenced by notestUserConfiguration().
final int com::cosylab::acs::alarm::AlarmUserTest::NUM_OF_USERS = 15 [private] |
Referenced by notestUserHandler(), and tearDown().
final String com::cosylab::acs::alarm::AlarmUserTest::PASSWORD = "password" [private] |
Referenced by notestUserConfiguration(), and notestUserHandler().
final String com::cosylab::acs::alarm::AlarmUserTest::USER_PREFIX = "test_user" [private] |
Referenced by notestUserConfiguration(), notestUserHandler(), and tearDown().
1.6.2