
Static Public Member Functions | |
| static void | deleteAlarmBranch (String CDBFolder) |
| static void | setupAlarmBranch (String CDBFolder, String ASImplementation) |
Static Private Attributes | |
| static String | XMLHead [] |
| static String | XMLTail = "</configuration-property>\n</alarm-system-configuration>\n" |
A class containing a set of useful methods needed by the tests
NOTE: In this test I am interested in checking if the alarms are sent to the log. CurrentlyI have the following message in the stdout (I think I'll mask that in the TestList.grep): failed to flush logging queue because remote logging service has not been made available.
This message is here because I have not initialized correctly the log and the remote logging is disabled. To fix that I should define this class as a Client, log into the manager and initialize the log. This would require a lot of time because I don't have the SimpleClient available at this point: everything should be done by hand. Ok... I don't care about the error because if the message is in the stdout it means that everything is working.
| static void alma::alarmsystem::source::test::TestUtil::deleteAlarmBranch | ( | String | CDBFolder | ) | [inline, static] |
Remove the Alarm branch from the CDB
| CDBFolder | The directory of the CDB |
Referenced by setupAlarmBranch().
| static void alma::alarmsystem::source::test::TestUtil::setupAlarmBranch | ( | String | CDBFolder, | |
| String | ASImplementation | |||
| ) | [inline, static] |
Rewrite the Alarm branch of the CDB.
| CDBFolder | The directory of the CDB | |
| ASImplementation | The value of the implementation property of the CDB |
References deleteAlarmBranch(), XMLHead, and XMLTail.
String alma::alarmsystem::source::test::TestUtil::XMLHead[] [static, private] |
{
"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n",
"<alarm-system-configuration xmlns=\"urn:schemas-cosylab-com:acsalarm-alarmservice:1.0\" \n\t\t",
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"> \n",
"\t<configuration-property name=\"Implementation\">"
}
Referenced by setupAlarmBranch().
String alma::alarmsystem::source::test::TestUtil::XMLTail = "</configuration-property>\n</alarm-system-configuration>\n" [static, private] |
Referenced by setupAlarmBranch().
1.6.2