The BBC have a service which provides programme information and schedules.
This is a legacy system and is currently missing tests.
Using the following business requirements listed below, use any Java library to create a suite of automated tests to interrogate the BbcProgrammeService.
Use Cases:
- Usage BbcProgrammeService.find(123)
- An IllegalArgumentException should be thrown if a programme id is not found.
- Usage BbcProgrammeService.findProgrammesScheduled(NumberOfDays.THREE)
- If there are no programmes scheduled, an empty Map will be returned.
- BbcProgrammeService uses an ScheduleService which is not maintained by our team but has a well defined interface.
- The programmes exist in a database and we have provided an empty, in-memory implementation for running with the automated build.