mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-03 03:57:49 +00:00
Fixed wrong Method name in WinServiceTest.
Added Comment to setFailurActions Method.
This commit is contained in:
@@ -139,6 +139,8 @@ public:
|
|||||||
|
|
||||||
void setFailureActions(FailureActionVector failureActions, const std::string& command = "", const std::string& rebootMessage = "");
|
void setFailureActions(FailureActionVector failureActions, const std::string& command = "", const std::string& rebootMessage = "");
|
||||||
/// Sets the Failure Actions for the service.
|
/// 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;
|
FailureActionTypeVector getFailureActions() const;
|
||||||
/// Returns the Failure Actions for the service.
|
/// Returns the Failure Actions for the service.
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ void WinServiceTest::testServiceReturnsTrueIfStopped() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WinServiceTest::testServiceReturnsFailureActionConfigured() {
|
void WinServiceTest::testServiceReturnsFailureActionConfigured() {
|
||||||
auto failureActions = spoolerService_.getFailureAction();
|
auto failureActions = spoolerService_.getFailureActions();
|
||||||
assertEqual(3, failureActions.size());
|
assertEqual(3, failureActions.size());
|
||||||
|
|
||||||
assertEqual(WinService::SVC_RESTART, failureActions[0]);
|
assertEqual(WinService::SVC_RESTART, failureActions[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user