File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/java/com/beehyv/nmsreporting/business/impl
test/java/com/beehyv/nmsreporting/business/impl Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class SmsServiceImpl implements SmsService {
4141 @ Autowired
4242 private FrontLineWorkersDao frontLineWorkersDao ;
4343
44- public SmsServiceImpl (MACourseCompletionDao maCourseCompletionDao ) {
44+ public void setMACourseCompletionDao (MACourseCompletionDao maCourseCompletionDao ) {
4545 this .maCourseCompletionDao = maCourseCompletionDao ;
4646 }
4747
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ public void setup(){
6565 PowerMockito .when (Global .getProperty ("sms.authentication.key" )).thenReturn ("don'tsaythemagicword" );
6666 PowerMockito .when (Global .getProperty ("endpoint" )).thenReturn ("http://stagesmsapi.nationalmhealth.in/smsmessaging/v1/outbound/nmssenderid/requests-dummy" );
6767
68- smsService = new SmsServiceImpl (maCourseCompletionDao );
68+ smsService = new SmsServiceImpl ();
69+ smsService .setMACourseCompletionDao (maCourseCompletionDao );
6970 }
7071
7172 @ Test
You can’t perform that action at this time.
0 commit comments