Fixed wrong Method name in WinServiceTest.

Added Comment to setFailurActions Method.
This commit is contained in:
Jan Kevin Dick 2019-11-18 12:04:51 +01:00
parent 123955a2df
commit 2ac3df363c
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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]);