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
- Host: GitHub
- URL: https://github.com/abraojr/beer-stock-api
- Owner: abraojr
- Created: 2021-07-15T22:35:36.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-18T01:09:21.000Z (almost 5 years ago)
- Last Synced: 2025-01-25T08:43:08.834Z (over 1 year ago)
- Topics: api-rest, hamcrest-matchers, junit5, mockito, spring-boot, unit-testing
- Language: Java
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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_