Commit 5cd80369bdf76456fdaaad27711e02df53276d69

Authored by Peter M. Groen
1 parent 8660a680

Setting up SledgeHammer Test

test/CMakeLists.txt
... ... @@ -9,6 +9,7 @@
9 9  
10 10 add_executable(topictest
11 11 TopicLengthTest.cpp
  12 + SledgeHammerTest.cpp
12 13 )
13 14  
14 15 target_include_directories(topictest PRIVATE
... ...
test/SledgeHammerTest.cpp 0 → 100644
  1 +/****************************************************************************
  2 + * COpyright (c) 2023 Open Systems Development B.V.
  3 + ****************************************************************************/
  4 +
  5 +#include <gmock/gmock.h>
  6 +#include <gtest/gtest.h>
  7 +#include <string>
  8 +#include <memory>
  9 +
  10 +#include "mqttclient.h"
  11 +
  12 +using namespace osdev::components::mqtt;
  13 +using namespace osdev::components::log;
  14 +
... ...
test/helperclasses/PublisherClass.h 0 → 100644
  1 +/****************************************************************************
  2 + * Copyright (c)2024 Open Systems Development B.V.
  3 + ****************************************************************************/
  4 +
  5 +#include "mqttclient.h"
  6 +
  7 +#include <string>
  8 +#include <memory>
  9 +
  10 +using namespace osdev::components::mqtt;
  11 +using namespace osdev::components::log;
  12 +
  13 +static const std::string main_topic = "test/";
  14 +
  15 +class Publisher
  16 +{
  17 +public:
  18 + Publisher() : m_mqtt_client("TopicTester"){}
  19 + virtual ~Publisher() {}
  20 +
  21 +};
0 22 \ No newline at end of file
... ...