mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-01 08:23:29 +02:00
Fixed wrong Method name in WinServiceTest.
Added Comment to setFailurActions Method.
This commit is contained in:
parent
123955a2df
commit
2ac3df363c
@ -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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user