File tree 2 files changed +5
-5
lines changed
src/test/java/org/apache/ibatis/testcontainers
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2024 the original author or authors.
2
+ * Copyright 2009-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ public final class MysqlContainer {
36
36
37
37
private static MySQLContainer <?> initContainer () {
38
38
@ SuppressWarnings ("resource" )
39
- MySQLContainer <?> container = new MySQLContainer <>().withDatabaseName (DB_NAME ).withUsername (USERNAME )
39
+ MySQLContainer <?> container = new MySQLContainer <>("mysql" ).withDatabaseName (DB_NAME ).withUsername (USERNAME )
40
40
.withPassword (PASSWORD ).withUrlParam ("useSSL" , "false" );
41
41
container .start ();
42
42
return container ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2024 the original author or authors.
2
+ * Copyright 2009-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -31,8 +31,8 @@ public final class PgContainer {
31
31
32
32
private static PostgreSQLContainer <?> initContainer () {
33
33
@ SuppressWarnings ("resource" )
34
- PostgreSQLContainer <?> container = new PostgreSQLContainer <>().withDatabaseName (DB_NAME ). withUsername ( USERNAME )
35
- .withPassword (PASSWORD );
34
+ PostgreSQLContainer <?> container = new PostgreSQLContainer <>("postgres" ).withDatabaseName (DB_NAME )
35
+ .withUsername ( USERNAME ). withPassword (PASSWORD );
36
36
container .start ();
37
37
return container ;
38
38
}
You can’t perform that action at this time.
0 commit comments