arkanjoms / dbunit-multiple-datasource

Example project with spring-boot, integration tests and dbunit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dbunit-multiple-datasource

Main workflow

Example project with:

  • spring-boot
  • java 8
  • postgres
  • integration tests
  • dbunit
  • h2

Run app

Create a database and two schemas with name customer and store, set the postgres configuration with the host and credentials. Execute command below:

$ mvn spring-boot:run

In another shell run command:

$ curl --request GET \
  --url 'http://localhost:8080/customers?page=0&size=10'

Run tests

Execute command:

$ mvn test

About

Example project with spring-boot, integration tests and dbunit

License:MIT License


Languages

Language:Java 100.0%