computer_endpoints.cpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 #include "common.h"
00012 
00013 #include <opc/ua/client/remote_server.h>
00014 
00015 #include <stdexcept>
00016 
00017 using namespace OpcUa;
00018 
00019 class Endpoints : public ::testing::Test
00020 {
00021 protected:
00022   virtual void SetUp()
00023   {
00024     std::unique_ptr<OpcUa::Services> computer = OpcUa::Connect(GetEndpoint());
00025     Server = computer->Endpoints();
00026   }
00027 
00028   virtual void TearDown()
00029   {
00030     Server = std::unique_ptr<EndpointServices>();
00031   }
00032 
00033 protected:
00034   std::shared_ptr<EndpointServices> Server;
00035 };
00036 
00037 
00038 TEST_F(Endpoints, GetEndpoints)
00039 {
00040   EndpointsFilter filter;
00041   const std::vector<EndpointDescription> endpoints = Server->GetEndpoints(filter);
00042   ASSERT_FALSE(endpoints.empty());
00043 }
00044 


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:40