88
99#include < catch.hpp>
1010
11- #include < property/types/CloudScheduler .h>
11+ #include < property/types/CloudSchedule .h>
1212
1313unsigned long time_now = 1 ;
1414
@@ -28,11 +28,11 @@ unsigned long TimeService::getTime() {return time_now;}
2828 TEST CODE
2929 **************************************************************************************/
3030
31- SCENARIO (" Tesing cloud type 'Scheduler ' Ctor" , " [Scheduler::Scheduler ]" )
31+ SCENARIO (" Tesing cloud type 'Schedule ' Ctor" , " [Schedule::Schedule ]" )
3232{
33- WHEN (" A Scheduler (0,0,0,0) is being instantiated" )
33+ WHEN (" A Schedule (0,0,0,0) is being instantiated" )
3434 {
35- Scheduler schedule (0 ,0 ,0 ,0 );
35+ Schedule schedule (0 ,0 ,0 ,0 );
3636 THEN (" The member variable 'start' should be 0" ) {
3737 REQUIRE (schedule.start == 0 );
3838 }
@@ -50,9 +50,9 @@ SCENARIO("Tesing cloud type 'Scheduler' Ctor", "[Scheduler::Scheduler]")
5050
5151/* *************************************************************************************/
5252
53- SCENARIO (" Setup a schedule that repeats each 20 minutes and test isActive Method" , " [Scheduler ::isActive]" )
53+ SCENARIO (" Setup a schedule that repeats each 20 minutes and test isActive Method" , " [Schedule ::isActive]" )
5454{
55- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
55+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
5656 1633651200 , /* End 8/10/2021 00:00:00 */
5757 600 , /* Duration 00:10:00 */
5858 1140850708 /* Minutes */
@@ -134,9 +134,9 @@ SCENARIO("Setup a schedule that repeats each 20 minutes and test isActive Method
134134
135135/* *************************************************************************************/
136136
137- SCENARIO (" Setup a weekly schedule and test isActive Method" , " [Scheduler ::isActive]" )
137+ SCENARIO (" Setup a weekly schedule and test isActive Method" , " [Schedule ::isActive]" )
138138{
139- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
139+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
140140 1633651200 , /* End 8/10/2021 00:00:00 */
141141 600 , /* Duration 00:10:00 */
142142 134217798 /* Weekly */
@@ -194,9 +194,9 @@ SCENARIO("Setup a weekly schedule and test isActive Method", "[Scheduler::isActi
194194
195195/* *************************************************************************************/
196196
197- SCENARIO (" Setup a monthly schedule and test isActive Method" , " [Scheduler ::isActive]" )
197+ SCENARIO (" Setup a monthly schedule and test isActive Method" , " [Schedule ::isActive]" )
198198{
199- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
199+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
200200 1664841600 , /* End 4/10/2022 00:00:00 */
201201 600 , /* Duration 00:10:00 */
202202 201326598 /* Monthly */
@@ -342,9 +342,9 @@ SCENARIO("Setup a monthly schedule and test isActive Method", "[Scheduler::isAct
342342
343343/* *************************************************************************************/
344344
345- SCENARIO (" Setup a yearly schedule and test isActive Method" , " [Scheduler ::isActive]" )
345+ SCENARIO (" Setup a yearly schedule and test isActive Method" , " [Schedule ::isActive]" )
346346{
347- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
347+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
348348 1759536000 , /* End 4/10/2025 00:00:00 */
349349 600 , /* Duration 00:10:00 */
350350 268438022 /* Yearly */
@@ -426,9 +426,9 @@ SCENARIO("Setup a yearly schedule and test isActive Method", "[Scheduler::isActi
426426
427427/* *************************************************************************************/
428428
429- SCENARIO (" Setup a one shot schedule and test isActive Method" , " [Scheduler ::isActive]" )
429+ SCENARIO (" Setup a one shot schedule and test isActive Method" , " [Schedule ::isActive]" )
430430{
431- Scheduler schedule (1636156800 , /* Start 6/11/2021 00:00:00 */
431+ Schedule schedule (1636156800 , /* Start 6/11/2021 00:00:00 */
432432 1636243199 , /* End 6/11/2021 23:59:59 */
433433 600 , /* Duration 00:10:00 */
434434 0 /* One shot */
0 commit comments