From 5cd80369bdf76456fdaaad27711e02df53276d69 Mon Sep 17 00:00:00 2001 From: Peter M. Groen Date: Thu, 25 Apr 2024 16:23:00 +0200 Subject: [PATCH] Setting up SledgeHammer Test --- test/CMakeLists.txt | 1 + test/SledgeHammerTest.cpp | 14 ++++++++++++++ test/helperclasses/PublisherClass.h | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 test/SledgeHammerTest.cpp create mode 100644 test/helperclasses/PublisherClass.h 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 -- libgit2 0.21.4