From 633fe0a7fc91ea4c9ded9e19450b4d0c97321009 Mon Sep 17 00:00:00 2001 From: neviyn Date: Fri, 2 Apr 2021 21:33:07 +0100 Subject: [PATCH] Setup to allow possible automated testing with a database --- src/main/resources/application.properties | 2 -- src/test/resources/application.properties | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/test/resources/application.properties diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 142b417..c64b101 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,3 @@ spring.jpa.hibernate.ddl-auto=none - spring.datasource.initialization-mode=always -spring.datasource.platform=postgres spring.jpa.properties.hibernate.default_schema=projectplanner \ No newline at end of file diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties new file mode 100644 index 0000000..68acf2f --- /dev/null +++ b/src/test/resources/application.properties @@ -0,0 +1,5 @@ +spring.datasource.url=jdbc:h2:mem:testdb +spring.datasource.driverClassName=org.h2.Driver +spring.flyway.enabled=false +spring.jpa.hibernate.ddl-auto=update +spring.jpa.properties.hibernate.default_schema= \ No newline at end of file