diff --git a/tests/Services/ServiceTests.hpp b/tests/Services/ServiceTests.hpp index 93c3740c552ac26a684dd0443565492396f66be7..f84e2dc614df47e1d28d34b8882a19159a245086 100644 --- a/tests/Services/ServiceTests.hpp +++ b/tests/Services/ServiceTests.hpp @@ -17,7 +17,7 @@ public: * Get a message from the list of queued messages to send * @param number The number of the message, starting from 0 in chronological order */ - static Message& get(unsigned long number) { + static Message &get(unsigned long number) { return queuedMessages.at(number); } diff --git a/tests/TestPlatform.cpp b/tests/TestPlatform.cpp index 08021c0b883fa4409ecb41aba509fd03a4d44c1f..5282535c7a9223aa2a40b2512e0838a322ba73c9 100644 --- a/tests/TestPlatform.cpp +++ b/tests/TestPlatform.cpp @@ -14,13 +14,13 @@ void Service::storeMessage(const Message &message) { struct ServiceTestsListener : Catch::TestEventListenerBase { using TestEventListenerBase::TestEventListenerBase; // inherit constructor - void testCaseStarting( Catch::TestCaseInfo const& testInfo ) override { + void testCaseStarting(Catch::TestCaseInfo const &testInfo) override { // Perform some setup before a test case is run } - void testCaseEnded( Catch::TestCaseStats const& testCaseStats ) override { + void testCaseEnded(Catch::TestCaseStats const &testCaseStats) override { // Tear-down after a test case is run ServiceTests::reset(); } }; -CATCH_REGISTER_LISTENER( ServiceTestsListener ) +CATCH_REGISTER_LISTENER(ServiceTestsListener) diff --git a/tests/tests.cpp b/tests/tests.cpp index 4ed06df1f7bea8cc18ee161389b9c3e2741b08a0..f481b16fe25e9b620f1dcf078a53f4f357d466c5 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -1,2 +1,3 @@ #define CATCH_CONFIG_MAIN + #include <catch2/catch.hpp>