From ae4701e6b0ed490aed32c5b07c84c5b52711188b Mon Sep 17 00:00:00 2001 From: Jonathan Lermitage Date: Sat, 1 Dec 2018 15:01:56 +0100 Subject: [PATCH] (test) replace hsqldb by h2 Result is the same but I wanted to evaluate hsqldb and h2 performance --- README.md | 1 + pom.xml | 10 +++++----- src/test/resources/application-test-embed-linux.yml | 2 +- src/test/resources/application-test-embed-win.yml | 2 +- src/test/resources/application-test.yml | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6bba7e0e..1814d43d 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Linkedin profile: [jonathan-lermitage-092711142](https://www.linkedin.com/in/jon * [spring5-light-batch](https://github.com/jonathanlermitage/manon/tree/spring5-light-batch): Spring Batch support. See commit [c0e3422](https://github.com/jonathanlermitage/manon/commit/c0e3422fcce5522c3320dd1a2eed65950e321621) * [spring5-embedmongo](https://github.com/jonathanlermitage/manon/tree/spring5-embedmongo): use **embedded MongoDB** during tests. See commits [37e1be5](https://github.com/jonathanlermitage/manon/commit/37e1be5f01c3ffa6ecf4d9c3e558b4ffb297227f) and [161d321](https://github.com/jonathanlermitage/manon/commit/161d3214ab72e76a2f041bbe8914077137513fb7) * [spring5-light-mongo4.0.x](https://github.com/jonathanlermitage/manon/tree/spring5-light-mongo4.0.x): make embedded MongoDB work with version from 3.6 to 4.0. See commit [a75a917](https://github.com/jonathanlermitage/manon/commit/a75a9178211233c24a6ac7001559fdfdf3413cd2) + * [spring5-light-hsqldb-to-h2](https://github.com/jonathanlermitage/manon/tree/spring5-light-hsqldb-to-h2) replace HSQLDB by H2 * [spring5-swagger](https://github.com/jonathanlermitage/manon/tree/spring5-swagger): enable **Swagger UI**. Run application and check `http://localhost:8080/swagger-ui.html`, authenticate with `ROOT` / `woot`. See commit [~~429ae53~~](https://github.com/jonathanlermitage/manon/commit/429ae53bc5211d8d97e8ccca20a4b183f207c6ee) [834852c](https://github.com/jonathanlermitage/manon/commit/834852cd5ce8bbb869a189aecdd90097c9168152) * [spring5-redis](https://github.com/jonathanlermitage/manon/tree/spring5-redis): enable **Redis cache**, and prefer embedded cache during tests. See commits [a911f6a](https://github.com/jonathanlermitage/manon/commit/a911f6a08ce67b3b302f4ea3d17a73e8a0dcd6e6), [7e26822](https://github.com/jonathanlermitage/manon/commit/7e268222a745e5bbb88129d99b91379bafac7f58) and [ae6e0e6](https://github.com/jonathanlermitage/manon/commit/ae6e0e69ac37dbe44b51f449600943e09b9b149b) * [spring5-mvn-to-gradle](https://github.com/jonathanlermitage/manon/tree/spring5-mvn-to-gradle): migration from **Maven to Gradle**. Stable and functional, but still needs some improvements diff --git a/pom.xml b/pom.xml index 66db3a2e..85a04ff6 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ -Dspring.profiles.active=test,metrics 2.1.1 - 2.4.1 + 1.4.197 3.0.11 1.2.3 1.18.4 @@ -100,12 +100,12 @@ ${mariadb.version} - org.hsqldb - hsqldb - ${hsqldb.version} + com.h2database + h2 + ${h2.version} test - + diff --git a/src/test/resources/application-test-embed-linux.yml b/src/test/resources/application-test-embed-linux.yml index cef35a49..463ef2d1 100644 --- a/src/test/resources/application-test-embed-linux.yml +++ b/src/test/resources/application-test-embed-linux.yml @@ -9,4 +9,4 @@ spring: embedded: version: 4.0.4 features: ["sync_delay", "ONLY_WITH_SSL", "NO_HTTP_INTERFACE_ARG"] - datasource.driver-class-name: org.hsqldb.jdbc.JDBCDriver + datasource.driver-class-name: org.h2.Driver diff --git a/src/test/resources/application-test-embed-win.yml b/src/test/resources/application-test-embed-win.yml index 719bcd87..d7ac059a 100644 --- a/src/test/resources/application-test-embed-win.yml +++ b/src/test/resources/application-test-embed-win.yml @@ -9,4 +9,4 @@ spring: embedded: version: 4.0.4 features: ["sync_delay", "ONLY_WITH_SSL", "ONLY_WINDOWS_2008_SERVER", "NO_HTTP_INTERFACE_ARG"] - datasource.driver-class-name: org.hsqldb.jdbc.JDBCDriver + datasource.driver-class-name: org.h2.Driver diff --git a/src/test/resources/application-test.yml b/src/test/resources/application-test.yml index c5e3541a..0bbe622b 100644 --- a/src/test/resources/application-test.yml +++ b/src/test/resources/application-test.yml @@ -10,4 +10,4 @@ spring: host: localhost port: 27017 database: manontest - datasource.driver-class-name: org.hsqldb.jdbc.JDBCDriver + datasource.driver-class-name: org.h2.Driver