diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1471cf8..9f91f79 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -9,6 +9,7 @@ add_executable(topictest TopicLengthTest.cpp + SledgeHammerTest.cpp ) target_include_directories(topictest PRIVATE diff --git a/test/SledgeHammerTest.cpp b/test/SledgeHammerTest.cpp new file mode 100644 index 0000000..66f51ff --- /dev/null +++ b/test/SledgeHammerTest.cpp @@ -0,0 +1,14 @@ +/**************************************************************************** + * COpyright (c) 2023 Open Systems Development B.V. + ****************************************************************************/ + +#include +#include +#include +#include + +#include "mqttclient.h" + +using namespace osdev::components::mqtt; +using namespace osdev::components::log; + diff --git a/test/helperclasses/PublisherClass.h b/test/helperclasses/PublisherClass.h new file mode 100644 index 0000000..f550474 --- /dev/null +++ b/test/helperclasses/PublisherClass.h @@ -0,0 +1,21 @@ +/**************************************************************************** + * Copyright (c)2024 Open Systems Development B.V. + ****************************************************************************/ + +#include "mqttclient.h" + +#include +#include + +using namespace osdev::components::mqtt; +using namespace osdev::components::log; + +static const std::string main_topic = "test/"; + +class Publisher +{ +public: + Publisher() : m_mqtt_client("TopicTester"){} + virtual ~Publisher() {} + +}; \ No newline at end of file