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 MySQL example

Running the tests

By default, the tests of this module are disabled.

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

mvn clean install -Dtest-mariadb -Ddocker

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

mvn clean install -Dtest-mariadb -Ddocker -Dnative

If you don't want to run MariaDB as a Docker container, you can start your own MariaDB or MySQL 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-mariadb

If you have specific requirements, you can define a specific connection URL with -Dreactive-mysql.url=vertx-reactive:mysql://localhost:3308/hibernate_orm_test.