File tree Expand file tree Collapse file tree 5 files changed +13
-223
lines changed
src/test/java/org/hibernate/reactive/containers Expand file tree Collapse file tree 5 files changed +13
-223
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ dependencies {
4646
4747 // JDBC driver for Testcontainers with MS SQL Server
4848 testRuntimeOnly " com.microsoft.sqlserver:mssql-jdbc:10.2.1.jre11"
49+
50+ // JDBC driver for Testcontainers with MariaDB Server
51+ testRuntimeOnly " org.mariadb.jdbc:mariadb-java-client:3.0.5" ;
52+
53+ // JDBC driver for Testcontainers with MYSQL Server
54+ testRuntimeOnly " mysql:mysql-connector-java:8.0.28" ;
55+
4956 // EHCache
5057 testRuntimeOnly " org.ehcache:ehcache:3.10.0"
5158 testRuntimeOnly (" org.hibernate:hibernate-jcache:${ hibernateOrmVersion} " ) {
Original file line number Diff line number Diff line change 88
99import static org .hibernate .reactive .containers .DockerImage .imageName ;
1010
11+ import org .testcontainers .containers .MariaDBContainer ;
12+
1113class MariaDatabase extends MySQLDatabase {
1214
1315 static MariaDatabase INSTANCE = new MariaDatabase ();
@@ -19,7 +21,7 @@ class MariaDatabase extends MySQLDatabase {
1921 * TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
2022 * at `$HOME/.testcontainers.properties` (create the file if it does not exist).
2123 */
22- public static final VertxMariaContainer maria = new VertxMariaContainer ( imageName ( "mariadb" , "10.7.3" ) )
24+ public static final MariaDBContainer <?> maria = new MariaDBContainer <> ( imageName ( "mariadb" , "10.7.3" ) )
2325 .withUsername ( DatabaseConfiguration .USERNAME )
2426 .withPassword ( DatabaseConfiguration .PASSWORD )
2527 .withDatabaseName ( DatabaseConfiguration .DB_NAME )
Original file line number Diff line number Diff line change 3030
3131import static org .hibernate .reactive .containers .DockerImage .imageName ;
3232
33+ import org .testcontainers .containers .MySQLContainer ;
34+
3335class MySQLDatabase implements TestableDatabase {
3436
3537 static MySQLDatabase INSTANCE = new MySQLDatabase ();
@@ -80,7 +82,7 @@ class MySQLDatabase implements TestableDatabase {
8082 * TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
8183 * at `$HOME/.testcontainers.properties` (create the file if it does not exist).
8284 */
83- public static final VertxMySqlContainer mysql = new VertxMySqlContainer ( imageName ( "mysql" , "8.0.28" ) )
85+ public static final MySQLContainer <?> mysql = new MySQLContainer <> ( imageName ( "mysql" , "8.0.28" ) )
8486 .withUsername ( DatabaseConfiguration .USERNAME )
8587 .withPassword ( DatabaseConfiguration .PASSWORD )
8688 .withDatabaseName ( DatabaseConfiguration .DB_NAME )
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments