An open API service indexing awesome lists of open source software.

https://github.com/abraojr/beer-stock-api

A beer stock API with Spring-Boot developed for unit testing
https://github.com/abraojr/beer-stock-api

api-rest hamcrest-matchers junit5 mockito spring-boot unit-testing

Last synced: about 2 months ago
JSON representation

A beer stock API with Spring-Boot developed for unit testing

Awesome Lists containing this project

README

          

# Beer-Stock-API

Digital Innovation One: Project to Bootcamp - Development of unit tests to validate a REST API for beer stocks management

In this project a REST API for beer stock management was developed, with a focus on unit testing. Main frameworks used for unit tests: JUnit, Mockito and Hamcrest. Unit tests were created to validate the basic functionalities: creation, listing, query by name, and exclusion of beers.In the end, two important functionalities were developed using the TDD concept: functionalities to increment and decrement the number of beers in stock.

API communication endpoint:

```
http://localhost:8080/api/v1/beers
```

Tools

* _Java 11_
* _Maven 3.8.1_
* _Intellj IDEA_
* _GIT_

Spring Dependencies

* _DevTools_
* _Lombok_
* _Spring Web_
* _Data JPA_
* _Actuator_
* _H2 Database_
* _MapStruct_