https://github.com/romeh/springboot-postgres-embedded-dao-testing
an exmaple for spring data DAO unit testing with embeded postgres in spring boot application
https://github.com/romeh/springboot-postgres-embedded-dao-testing
dao lombok mapstruct postgresql spring-boot swagger2 unit-testing
Last synced: 12 months ago
JSON representation
an exmaple for spring data DAO unit testing with embeded postgres in spring boot application
- Host: GitHub
- URL: https://github.com/romeh/springboot-postgres-embedded-dao-testing
- Owner: Romeh
- Created: 2018-09-03T10:06:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-03T14:57:21.000Z (over 7 years ago)
- Last Synced: 2025-03-24T13:51:16.148Z (about 1 year ago)
- Topics: dao, lombok, mapstruct, postgresql, spring-boot, swagger2, unit-testing
- Language: Java
- Homepage:
- Size: 114 KB
- Stars: 4
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Springboot-PostgreSQL-Embedded-Dao-Testing
### About
This is a sample application to show how to do DAO unit testing using embedded PostgreSQL DB
to replicate the same conditions of your production application if you have use PostgreSQL DB.
Detailed explanation can be found in : https://mromeh.com/2018/09/03/spring-boot-with-embedded-postgresql-for-dao-integration-unit-testing-and-local-development/
-------------------

-------------------
### Tech stack:
- Spring boot 2
- Spring data
- Spring REST
- Lombok
- PostgreSQL
- Mapstruct for DTO mapping
- Swagger 2
-------------------
### How to compile and install:
it is a maven project , so just clean and install and should be ready !
```sh
mvn clean install
```
-------------------
### How to run the locally :
Once you run the spint boot application locally from the main class, you can test the rest API on the browser via SWAGGER
```sh
http://localhost:8080/swagger-ui.html
```