From 20283c7c6615425102236b44f06fe658f195f100 Mon Sep 17 00:00:00 2001
From: athatheo <vostidi@hotmail.com>
Date: Sun, 10 Mar 2019 16:16:34 +0200
Subject: [PATCH] Added a getter for eventActionFunctionStatus

---
 inc/Services/EventActionService.hpp  | 13 +++++++++++--
 test/Services/EventActionService.cpp |  4 ++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/inc/Services/EventActionService.hpp b/inc/Services/EventActionService.hpp
index 14f5748f..409275c0 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 a9d6ac01..f40de3fd 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]"){
-- 
GitLab