Putting all pieces together
In this last section of the book, we are going to review some of the major aspects covered in this book with a practical example. To that aim, a complete application is developed together with different types of tests implemented with JUnit 5.
Features and requirements
The history of our application begins with a hypothetical person, which loves cats. This person owns a clowder, and he/she would like to get feedback about them from the external world. For that reason, this person (we can him/her our client from now on) contacts with us to implement a web application which satisfies his/her needs. The name for that application will be "Rate my cat!". In a conversation with the client, we elicit a following list of features for the application to be developed:
- F1: Each user shall rate a list of cats by watching its name and picture.
- F2: The rate shall be done once per user using a star mechanism (from
0.5
to5
stars per cat) and optionally comments could be included...