There is an API which returns based on a date whether it is a working day for the carer or not.
For Example: The Carer works Monday to Friday. So a date which falls on a Saturday would return that it is not a working day.
We are going to push this API to production for the first time. In order to ensure we have delivered quality, reliable and stable software what approach should we take?
- Add a TEST-APPROACH.md explaining your test approach for this task, including different levels & types of test
Using SpringBoot complete the tasks below.
- Fix the failing test
- Add a test for a negative scenario
- Refactor anything you would improve
- Make sure to comment and add details of your thought process and any assumptions you have made
- Don't spend too long on it (2 hours max)
Resource used to create project Spring Docs
java version (openjdk 11.0.11 2021-04-20
)
./mvnw test
- Fork and push your changes, then notify the hiring manager
or - Clone then zip it up and email to hiring manager
(please do not create a pull request or push to main)