Files
Clement Escoffier 4b124ff3b4 Switch reactive ITs client to mutiny
This commit uses the Mutiny PG/MySQL Pools instead of the Axle ones.
2020-02-20 10:45:46 +01:00
..
2020-02-20 10:45:46 +01:00

Reactive PostgreSQL example

Running the tests

By default, the tests of this module are disabled.

To run the tests in a standard JVM with PostgreSQL started as a Docker container, you can run the following command:

mvn clean install -Dtest-postgresql -Ddocker

Additionally, you can generate a native image and run the tests for this native image by adding -Dnative:

mvn clean install -Dtest-postgresql -Ddocker -Dnative

If you don't want to run PostgreSQL as a Docker container, you can start your own PostgreSQL server. It needs to listen on the default port and have a database called hibernate_orm_test accessible to the user hibernate_orm_test with the password hibernate_orm_test.

You can then run the tests as follows (either with -Dnative or not):

mvn clean install -Dtest-postgresql

If you have specific requirements, you can define a specific connection URL with -Dreactive-postgres.url=vertx-reactive:postgresql://:5431/hibernate_orm_test.