From 2ac3df363cf1ce36096a4e17b8a0365533c3e578 Mon Sep 17 00:00:00 2001 From: Jan Kevin Dick Date: Mon, 18 Nov 2019 12:04:51 +0100 Subject: [PATCH] Fixed wrong Method name in WinServiceTest. Added Comment to setFailurActions Method. --- Util/include/Poco/Util/WinService.h | 2 ++ Util/testsuite/src/WinServiceTest.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Util/include/Poco/Util/WinService.h b/Util/include/Poco/Util/WinService.h index 4d29cc4d3..1b44cd5a2 100644 --- a/Util/include/Poco/Util/WinService.h +++ b/Util/include/Poco/Util/WinService.h @@ -139,6 +139,8 @@ public: void setFailureActions(FailureActionVector failureActions, const std::string& command = "", const std::string& rebootMessage = ""); /// Sets the Failure Actions for the service. + /// If one of the Actions is SVC_RUN_COMMAND the command Parameter is added. + /// If one of the Actions is SVC_REBOOT the Reboot Message is set. FailureActionTypeVector getFailureActions() const; /// Returns the Failure Actions for the service. diff --git a/Util/testsuite/src/WinServiceTest.cpp b/Util/testsuite/src/WinServiceTest.cpp index c27194ab9..f2af69444 100644 --- a/Util/testsuite/src/WinServiceTest.cpp +++ b/Util/testsuite/src/WinServiceTest.cpp @@ -30,7 +30,7 @@ void WinServiceTest::testServiceReturnsTrueIfStopped() { } void WinServiceTest::testServiceReturnsFailureActionConfigured() { - auto failureActions = spoolerService_.getFailureAction(); + auto failureActions = spoolerService_.getFailureActions(); assertEqual(3, failureActions.size()); assertEqual(WinService::SVC_RESTART, failureActions[0]);