8
8
9
9
#include < catch.hpp>
10
10
11
- #include < property/types/CloudScheduler .h>
11
+ #include < property/types/CloudSchedule .h>
12
12
13
13
unsigned long time_now = 1 ;
14
14
@@ -28,11 +28,11 @@ unsigned long TimeService::getTime() {return time_now;}
28
28
TEST CODE
29
29
**************************************************************************************/
30
30
31
- SCENARIO (" Tesing cloud type 'Scheduler ' Ctor" , " [Scheduler::Scheduler ]" )
31
+ SCENARIO (" Tesing cloud type 'Schedule ' Ctor" , " [Schedule::Schedule ]" )
32
32
{
33
- WHEN (" A Scheduler (0,0,0,0) is being instantiated" )
33
+ WHEN (" A Schedule (0,0,0,0) is being instantiated" )
34
34
{
35
- Scheduler schedule (0 ,0 ,0 ,0 );
35
+ Schedule schedule (0 ,0 ,0 ,0 );
36
36
THEN (" The member variable 'start' should be 0" ) {
37
37
REQUIRE (schedule.start == 0 );
38
38
}
@@ -50,9 +50,9 @@ SCENARIO("Tesing cloud type 'Scheduler' Ctor", "[Scheduler::Scheduler]")
50
50
51
51
/* *************************************************************************************/
52
52
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]" )
54
54
{
55
- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
55
+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
56
56
1633651200 , /* End 8/10/2021 00:00:00 */
57
57
600 , /* Duration 00:10:00 */
58
58
1140850708 /* Minutes */
@@ -134,9 +134,9 @@ SCENARIO("Setup a schedule that repeats each 20 minutes and test isActive Method
134
134
135
135
/* *************************************************************************************/
136
136
137
- SCENARIO (" Setup a weekly schedule and test isActive Method" , " [Scheduler ::isActive]" )
137
+ SCENARIO (" Setup a weekly schedule and test isActive Method" , " [Schedule ::isActive]" )
138
138
{
139
- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
139
+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
140
140
1633651200 , /* End 8/10/2021 00:00:00 */
141
141
600 , /* Duration 00:10:00 */
142
142
134217798 /* Weekly */
@@ -194,9 +194,9 @@ SCENARIO("Setup a weekly schedule and test isActive Method", "[Scheduler::isActi
194
194
195
195
/* *************************************************************************************/
196
196
197
- SCENARIO (" Setup a monthly schedule and test isActive Method" , " [Scheduler ::isActive]" )
197
+ SCENARIO (" Setup a monthly schedule and test isActive Method" , " [Schedule ::isActive]" )
198
198
{
199
- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
199
+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
200
200
1664841600 , /* End 4/10/2022 00:00:00 */
201
201
600 , /* Duration 00:10:00 */
202
202
201326598 /* Monthly */
@@ -342,9 +342,9 @@ SCENARIO("Setup a monthly schedule and test isActive Method", "[Scheduler::isAct
342
342
343
343
/* *************************************************************************************/
344
344
345
- SCENARIO (" Setup a yearly schedule and test isActive Method" , " [Scheduler ::isActive]" )
345
+ SCENARIO (" Setup a yearly schedule and test isActive Method" , " [Schedule ::isActive]" )
346
346
{
347
- Scheduler schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
347
+ Schedule schedule (1633305600 , /* Start 4/10/2021 00:00:00 */
348
348
1759536000 , /* End 4/10/2025 00:00:00 */
349
349
600 , /* Duration 00:10:00 */
350
350
268438022 /* Yearly */
@@ -426,9 +426,9 @@ SCENARIO("Setup a yearly schedule and test isActive Method", "[Scheduler::isActi
426
426
427
427
/* *************************************************************************************/
428
428
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]" )
430
430
{
431
- Scheduler schedule (1636156800 , /* Start 6/11/2021 00:00:00 */
431
+ Schedule schedule (1636156800 , /* Start 6/11/2021 00:00:00 */
432
432
1636243199 , /* End 6/11/2021 23:59:59 */
433
433
600 , /* Duration 00:10:00 */
434
434
0 /* One shot */
0 commit comments