@@ -97,7 +97,7 @@ void testBiWeeklySendEmail() {
9797 final Setting setting = new Setting (pulseSettingName , pulseBiWeekly );
9898 settingsServices .save (setting );
9999
100- pulseServices .sendPendingEmail (biWeeklyDate );
100+ pulseServices .notifyUsers (biWeeklyDate );
101101 assertEquals (1 , emailSender .events .size ());
102102
103103 EmailHelper .validateEmail ("SEND_EMAIL" , "null" , "null" ,
@@ -112,7 +112,7 @@ void testWeeklySendEmail() {
112112 final Setting setting = new Setting (pulseSettingName , pulseWeekly );
113113 settingsServices .save (setting );
114114
115- pulseServices .sendPendingEmail (weeklyDate );
115+ pulseServices .notifyUsers (weeklyDate );
116116 assertEquals (1 , emailSender .events .size ());
117117
118118 EmailHelper .validateEmail ("SEND_EMAIL" , "null" , "null" ,
@@ -127,7 +127,7 @@ void testMonthlySendEmail() {
127127 final Setting setting = new Setting (pulseSettingName , pulseMonthly );
128128 settingsServices .save (setting );
129129
130- pulseServices .sendPendingEmail (monthlyDate );
130+ pulseServices .notifyUsers (monthlyDate );
131131 assertEquals (1 , emailSender .events .size ());
132132
133133 EmailHelper .validateEmail ("SEND_EMAIL" , "null" , "null" ,
@@ -142,7 +142,7 @@ void testDuplicateSendEmail() {
142142 final Setting setting = new Setting (pulseSettingName , pulseMonthly );
143143 settingsServices .save (setting );
144144
145- pulseServices .sendPendingEmail (monthlyDate );
145+ pulseServices .notifyUsers (monthlyDate );
146146 // This should be zero because email was already sent on this date.
147147 assertEquals (0 , emailSender .events .size ());
148148 }
@@ -152,13 +152,13 @@ void testNoSendEmail() {
152152 final Setting setting = new Setting (pulseSettingName , pulseBiWeekly );
153153 settingsServices .save (setting );
154154
155- pulseServices .sendPendingEmail (weeklyDate );
155+ pulseServices .notifyUsers (weeklyDate );
156156 // This should be zero because, when set to bi-weekly, email is sent on
157157 // the first, third, and fifth Monday of the month.
158158 assertEquals (0 , emailSender .events .size ());
159159
160160 final LocalDate nonMonday = weeklyDate .plus (1 , ChronoUnit .DAYS );
161- pulseServices .sendPendingEmail (nonMonday );
161+ pulseServices .notifyUsers (nonMonday );
162162 // This should be zero because the date is not a Monday.
163163 assertEquals (0 , emailSender .events .size ());
164164 }
0 commit comments