adapt PSB so it can be unittested properly

This commit is contained in:
2022-07-26 16:49:46 +02:00
parent f14c812aff
commit d98b79cf5e
27 changed files with 205 additions and 131 deletions

View File

@ -10,7 +10,8 @@
TEST_CASE("Action Helper", "[ActionHelper]") {
ActionHelperOwnerMockBase testDhMock;
MessageQueueMock testMqMock;
// TODO: Setting another number here breaks the test. Find out why
MessageQueueMock testMqMock(MessageQueueIF::NO_QUEUE);
ActionHelper actionHelper = ActionHelper(&testDhMock, dynamic_cast<MessageQueueIF*>(&testMqMock));
CommandMessage actionMessage;
ActionId_t testActionId = 777;