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 {
46
46
47
47
// JDBC driver for Testcontainers with MS SQL Server
48
48
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
+
49
56
// EHCache
50
57
testRuntimeOnly " org.ehcache:ehcache:3.10.0"
51
58
testRuntimeOnly (" org.hibernate:hibernate-jcache:${ hibernateOrmVersion} " ) {
Original file line number Diff line number Diff line change 8
8
9
9
import static org .hibernate .reactive .containers .DockerImage .imageName ;
10
10
11
+ import org .testcontainers .containers .MariaDBContainer ;
12
+
11
13
class MariaDatabase extends MySQLDatabase {
12
14
13
15
static MariaDatabase INSTANCE = new MariaDatabase ();
@@ -19,7 +21,7 @@ class MariaDatabase extends MySQLDatabase {
19
21
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
20
22
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
21
23
*/
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" ) )
23
25
.withUsername ( DatabaseConfiguration .USERNAME )
24
26
.withPassword ( DatabaseConfiguration .PASSWORD )
25
27
.withDatabaseName ( DatabaseConfiguration .DB_NAME )
Original file line number Diff line number Diff line change 30
30
31
31
import static org .hibernate .reactive .containers .DockerImage .imageName ;
32
32
33
+ import org .testcontainers .containers .MySQLContainer ;
34
+
33
35
class MySQLDatabase implements TestableDatabase {
34
36
35
37
static MySQLDatabase INSTANCE = new MySQLDatabase ();
@@ -80,7 +82,7 @@ class MySQLDatabase implements TestableDatabase {
80
82
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
81
83
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
82
84
*/
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" ) )
84
86
.withUsername ( DatabaseConfiguration .USERNAME )
85
87
.withPassword ( DatabaseConfiguration .PASSWORD )
86
88
.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