diff --git a/inc/Services/EventActionService.hpp b/inc/Services/EventActionService.hpp index 14f5748f5ddc65f590ad46e6a8d14fb2552982d1..409275c0edec62ff625c199cf8592713eb70be8d 100644 --- a/inc/Services/EventActionService.hpp +++ b/inc/Services/EventActionService.hpp @@ -29,8 +29,8 @@ class EventActionService : public Service { private: /** - * Event-action function status - */ + * Event-action function status + */ bool eventActionFunctionStatus; /** @@ -115,6 +115,15 @@ public: void setEventActionFunctionStatus(bool status) { eventActionFunctionStatus = status; } + + /** + * Getter for event-action function status + * @return eventActionFunctionStatus + */ + bool getEventActionFunctionStatus(){ + return eventActionFunctionStatus; + } + }; #endif //ECSS_SERVICES_EVENTACTIONSERVICE_HPP diff --git a/test/Services/EventActionService.cpp b/test/Services/EventActionService.cpp index a9d6ac0187062410d8b6860438d8ff1a909945fb..f40de3fda9cc5aeab243d61ce786b5c991fb4651 100644 --- a/test/Services/EventActionService.cpp +++ b/test/Services/EventActionService.cpp @@ -254,14 +254,14 @@ TEST_CASE("Enable event-action function TC[19,8]", "[service][st09]") { EventActionService eventActionService; Message message(19, 8, Message::TC, 0); eventActionService.enableEventActionFunction(message); - CHECK(eventActionService.eventActionFunctionStatus == true); + CHECK(eventActionService.getEventActionFunctionStatus() == true); } TEST_CASE("Disable event-action function TC[19,9]", "[service][st09]") { EventActionService eventActionService; Message message(19, 9, Message::TC, 0); eventActionService.disableEventActionFunction(message); - CHECK(eventActionService.eventActionFunctionStatus == false); + CHECK(eventActionService.getEventActionFunctionStatus() == false); } TEST_CASE("Execute a TC request", "[service][st09]"){