diff options
| author | Szymon Szukalski <szymon@skas.io> | 2024-07-25 10:36:15 +1000 |
|---|---|---|
| committer | Szymon Szukalski <szymon@skas.io> | 2024-07-25 10:36:15 +1000 |
| commit | bac742fe816a349d75db28fc44e5cca22776bb1a (patch) | |
| tree | 3497209e14c653c5c4f3d190a31845adccb5842f /src/test/resources/application-test.properties | |
| parent | 7be6f97a98429485ff35b12798bdb8e7b8facf19 (diff) | |
Use in-memory database (H2) for tests
Diffstat (limited to 'src/test/resources/application-test.properties')
| -rw-r--r-- | src/test/resources/application-test.properties | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties new file mode 100644 index 0000000..87666a1 --- /dev/null +++ b/src/test/resources/application-test.properties @@ -0,0 +1,12 @@ +# H2 Configuration +spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE +spring.datasource.driver-class-name=org.h2.Driver +spring.datasource.username=markr_test +spring.datasource.password=DekqFAQnRIjH2Kz1 +spring.h2.console.enabled=true +# Hibernate Configuration +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect +spring.jpa.hibernate.ddl-auto=update +spring.jpa.show-sql=false +# Disable Open Session in View +spring.jpa.open-in-view=false
\ No newline at end of file |
