Skip to content

Commit

Permalink
(test) replace hsqldb by h2
Browse files Browse the repository at this point in the history
Result is the same but I wanted to evaluate hsqldb and h2 performance
  • Loading branch information
jonathanlermitage committed Dec 1, 2018
1 parent e822c95 commit ae4701e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<profileArgLine>-Dspring.profiles.active=test,metrics</profileArgLine>

<embed.mongo.version>2.1.1</embed.mongo.version>
<hsqldb.version>2.4.1</hsqldb.version>
<h2.version>1.4.197</h2.version>
<janino.version>3.0.11</janino.version>
<logback-classic.version>1.2.3</logback-classic.version>
<lombok.version>1.18.4</lombok.version>
Expand Down Expand Up @@ -100,12 +100,12 @@
<version>${mariadb.version}</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>${hsqldb.version}</version>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
<scope>test</scope>
</dependency>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Logging. -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application-test-embed-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/test/resources/application-test-embed-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ae4701e

Please sign in to comment.