test: Add H2 database for testing and update config
All checks were successful
Quality Check / Gradle Check (pull_request) Successful in 4m22s

This commit is contained in:
Jan K9f 2024-09-25 10:06:45 +02:00
parent a3348fb777
commit 7fc19b5bbe
Signed by: jank
GPG key ID: B267751B8AE29EFE
5 changed files with 14 additions and 14 deletions

View 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

View 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 {