In service /v1/regard-application inside regardApplicationAutomation.regardApplication we have a a below logic for if condition
if (responseCode.toString() == "404" || responseCode.toString() == "408" || responseCode.toString() == "503")
Proposal:
In the above code snippet, we can directly check responseCode with either 404 || 408 || 503 instead of converting it to string first. e.g
if (responseCode == 404 || responseCode == 408 || responseCode == 503)
In service /v1/regard-application inside regardApplicationAutomation.regardApplication we have a a below logic for if condition
if (responseCode.toString() == "404" || responseCode.toString() == "408" || responseCode.toString() == "503")
Proposal: In the above code snippet, we can directly check responseCode with either 404 || 408 || 503 instead of converting it to string first. e.g
if (responseCode == 404 || responseCode == 408 || responseCode == 503)
Perform the unit testing after making changes