test: Add H2 database for testing and update config
All checks were successful
Quality Check / Gradle Check (pull_request) Successful in 4m22s
All checks were successful
Quality Check / Gradle Check (pull_request) Successful in 4m22s
This commit is contained in:
parent
a3348fb777
commit
7fc19b5bbe
5 changed files with 14 additions and 14 deletions
5
src/main/resources/application-test.properties
Normal file
5
src/main/resources/application-test.properties
Normal file
|
@ -0,0 +1,5 @@
|
|||
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
|
||||
spring.datasource.driver-class-name=org.h2.Driver
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=
|
||||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
|
0
src/test/java/application-test.properties
Normal file
0
src/test/java/application-test.properties
Normal file
|
@ -2,6 +2,7 @@ package de.szut.lf8_starter;
|
|||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
|
||||
@SpringBootTest
|
||||
class Lf8StarterApplicationTests {
|
||||
|
|
Reference in a new issue