alma::alarmsystem::source::test::TestUtil Class Reference

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

List of all members.

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"

Detailed Description

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.

Author:
acaproni

Member Function Documentation

static void alma::alarmsystem::source::test::TestUtil::deleteAlarmBranch ( String  CDBFolder  )  [inline, static]

Remove the Alarm branch from the CDB

Parameters:
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.

Parameters:
CDBFolder The directory of the CDB
ASImplementation The value of the implementation property of the CDB

References deleteAlarmBranch(), XMLHead, and XMLTail.


Member Data Documentation

Initial value:
 {
                        "<?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().


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

Generated by  doxygen 1.6.2