Digital Innovation: Expert class - Developing Unit Tests for a API REST of beer stock management validation Live coding where it was developed unit tests to validade a system of beer stock management using API REST and created with Spring Boot.
The folowing topics were approached:
- Introduction about tests: test pyramid and also the value of each type of test in the software development cicle
- Foucus on unit tests: its importance in the software development cicle
- Main frameworks for unit tests in Java: JUnit, Mockito and Hamcrest
- Development of basic functionalities unit tests validation: create, list, search by name and deletion of beers
- TDD: brief introduction with a empiric example of 2 main functionalities, the beer amount in stock increment and drecement (the second not finished yet)
To run in the terminal, in the project folder, type:
mvn spring-boot:run
Prerequisites:
Java 11
Maven 3.8.1
Intelij IDEA Community or your favorite IDE