11package org .testcontainers .junit .mariadb ;
22
33import org .apache .commons .lang3 .SystemUtils ;
4- import org .junit .Test ;
4+ import org .junit .jupiter . api . Test ;
55import org .testcontainers .MariaDBTestImages ;
66import org .testcontainers .containers .MariaDBContainer ;
77import org .testcontainers .db .AbstractContainerDatabaseTest ;
2121import static org .assertj .core .api .Assumptions .assumeThat ;
2222import static org .junit .Assume .assumeFalse ;
2323
24- public class SimpleMariaDBTest extends AbstractContainerDatabaseTest {
24+ class SimpleMariaDBTest extends AbstractContainerDatabaseTest {
2525
2626 @ Test
27- public void testSimple () throws SQLException {
27+ void testSimple () throws SQLException {
2828 try ( // container {
2929 MariaDBContainer <?> mariadb = new MariaDBContainer <>("mariadb:10.3.39" )
3030 // }
@@ -39,7 +39,7 @@ public void testSimple() throws SQLException {
3939 }
4040
4141 @ Test
42- public void testSpecificVersion () throws SQLException {
42+ void testSpecificVersion () throws SQLException {
4343 try (
4444 MariaDBContainer <?> mariadbOldVersion = new MariaDBContainer <>(
4545 MariaDBTestImages .MARIADB_IMAGE .withTag ("10.3.39" )
@@ -57,7 +57,7 @@ public void testSpecificVersion() throws SQLException {
5757 }
5858
5959 @ Test
60- public void testMariaDBWithCustomIniFile () throws SQLException {
60+ void testMariaDBWithCustomIniFile () throws SQLException {
6161 assumeFalse (SystemUtils .IS_OS_WINDOWS );
6262
6363 try (
@@ -73,7 +73,7 @@ public void testMariaDBWithCustomIniFile() throws SQLException {
7373 }
7474
7575 @ Test
76- public void testMariaDBWithCommandOverride () throws SQLException {
76+ void testMariaDBWithCommandOverride () throws SQLException {
7777 try (
7878 MariaDBContainer <?> mariadbCustomConfig = new MariaDBContainer <>(MariaDBTestImages .MARIADB_IMAGE )
7979 .withCommand ("mysqld --auto_increment_increment=10" )
@@ -87,7 +87,7 @@ public void testMariaDBWithCommandOverride() throws SQLException {
8787 }
8888
8989 @ Test
90- public void testWithAdditionalUrlParamInJdbcUrl () {
90+ void testWithAdditionalUrlParamInJdbcUrl () {
9191 MariaDBContainer <?> mariaDBContainer = new MariaDBContainer <>(MariaDBTestImages .MARIADB_IMAGE )
9292 .withUrlParam ("connectTimeout" , "40000" )
9393 .withUrlParam ("rewriteBatchedStatements" , "true" );
@@ -105,7 +105,7 @@ public void testWithAdditionalUrlParamInJdbcUrl() {
105105 }
106106
107107 @ Test
108- public void testWithOnlyUserReadableCustomIniFile () throws Exception {
108+ void testWithOnlyUserReadableCustomIniFile () throws Exception {
109109 assumeThat (FileSystems .getDefault ().supportedFileAttributeViews ().contains ("posix" )).isTrue ();
110110
111111 try (
@@ -136,7 +136,7 @@ public void testWithOnlyUserReadableCustomIniFile() throws Exception {
136136 }
137137
138138 @ Test
139- public void testEmptyPasswordWithRootUser () throws SQLException {
139+ void testEmptyPasswordWithRootUser () throws SQLException {
140140 try (MariaDBContainer <?> mysql = new MariaDBContainer <>("mariadb:11.2.4" ).withUsername ("root" )) {
141141 mysql .start ();
142142
0 commit comments