Skip to content

Commit 97ee1c7

Browse files
author
Will Sobel
committed
Added an additional condition test, a partial clearing of a set of faults.
1 parent 2e59414 commit 97ee1c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/agent_test.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,15 @@ void AgentTest::testConditionSequence()
17241724
CPPUNITTEST_ASSERT_XML_PATH_EQUAL(doc, "//m:DeviceStream//m:ComponentStream[@component='Controller']/m:Condition/m:Fault[2]", "4200 ALARM_D POWER ON EFFECTIVE PARAMETER SET");
17251725
}
17261726

1727+
adapter->processData("TIME|lp|NORMAL|2218|||");
1728+
1729+
{
1730+
PARSE_XML_RESPONSE;
1731+
CPPUNITTEST_ASSERT_XML_PATH_COUNT(doc, "//m:DeviceStream//m:ComponentStream[@component='Controller']/m:Condition/*", 1);
1732+
CPPUNITTEST_ASSERT_XML_PATH_EQUAL(doc, "//m:DeviceStream//m:ComponentStream[@component='Controller']/m:Condition/m:Fault[1]@nativeCode", "4200");
1733+
CPPUNITTEST_ASSERT_XML_PATH_EQUAL(doc, "//m:DeviceStream//m:ComponentStream[@component='Controller']/m:Condition/m:Fault[1]", "4200 ALARM_D POWER ON EFFECTIVE PARAMETER SET");
1734+
}
1735+
17271736
adapter->processData("TIME|lp|NORMAL||||");
17281737

17291738
{

0 commit comments

Comments
 (0)