Start mongodb locally
docker run --rm -p 27017:27017 --name mongo_contract_testing -d mongo
Run existing tests in IDE or mvn test
- Make the contract test (using abstract test class)
- Due to the failing test implement in-memory repository
- Evolve the repository with a method getByAuthor(), that returns a list of books by author
- Improve performance of getById()