on 03-04-2019 4:30 PM
Hi All,
I am facing difficulty in covering a while loop using a Junit. Please find the below piece of code:
while (dateUtils.compareDates(pagBegTime, apiEndTime) && !JobStatus.STOPPED.equals(manageAPIData.getJobStatus()))
dateUtils.compareDates- returns true if pagBegTime is less than apiEndTime. !JobStatus.STOPPED.equals(manageAPIData.getJobStatus()- return true if jobstatus is other than Stopped.
Thanks in Advance.
- I tried it and it didn't worked for me.Could you please provide me an alternative solution for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.