-
-
Java 11
-
Docker Installation guide
-
Docker Compose Installation guide
-
-
-
- build the Docker Compose
- run the Docker Compose
-
- Open application-properties file and change
#from spring.profiles.active=prod #to spring.profiles.active=test
-
Then you should create environmental variables that are defined in the
application-test.properties
All these variables you can set in Intellij Idea. For instance:
spring.datasource.url=${DATABASE_TEST_URL} spring.datasource.username=${DATABASE_TEST_USER} spring.datasource.password=${DATABASE_TEST_PASSWORD}
- And just run the application
-
-
- You can rut the
insertData.sql
script with test data. It located in thedata
folder - You can use the Postman collection for request testing. It located at
data/postman_collection
folder
- You can rut the