1 #include "ChimeraTK/ControlSystemAdapter/ControlSystemPVManager.h"
2 #include "ChimeraTK/ControlSystemAdapter/DevicePVManager.h"
3 #include "ChimeraTK/ControlSystemAdapter/PVManager.h"
8 #include <boost/test/included/unit_test.hpp>
10 using namespace boost::unit_test_framework;
15 static void testExampleSet();
19 cout <<
"UAAdapterTest with ExampleSet started." << endl;
22 BOOST_CHECK_THROW(
ua_uaadapter(
"uamapping_test_twoconfigs.xml"), std::runtime_error);
23 BOOST_CHECK_THROW(
ua_uaadapter(
"uamapping_test_notwellformed.xml"), std::logic_error);
27 ad1 =
new ua_uaadapter(
"uamapping_test_configismissing.xml");
29 ad1 =
new ua_uaadapter(
"uamapping_test_portismissing.xml");
38 BOOST_CHECK(!UA_NodeId_isNull(&ownNodeId));
43 UA_NodeId folderNodeId = adapter->
existFolderPath(ownNodeId, pathVector);
44 BOOST_CHECK(UA_NodeId_isNull(&folderNodeId));
48 BOOST_CHECK(!UA_NodeId_isNull(&folderNodeId));
51 BOOST_CHECK(!UA_NodeId_isNull(&folderNodeId));
56 BOOST_CHECK(UA_NodeId_isNull(&folderNodeId));
59 BOOST_CHECK(!UA_NodeId_isNull(&folderNodeId));
62 BOOST_CHECK(!UA_NodeId_isNull(&folderNodeId));
65 UA_NodeId existingFolderNodeId = adapter->
createFolderPath(ownNodeId, pathVector);
66 BOOST_CHECK(UA_NodeId_equal(&existingFolderNodeId, &folderNodeId));
69 BOOST_CHECK(UA_NodeId_isNull(&folderNodeId));
71 for(
auto processVar : tfExampleSet.
csManager.get()->getAllProcessVariables()) {