11package org .testcontainers .junit .cockroachdb ;
22
3- import org .junit .Test ;
3+ import org .junit .jupiter . api . Test ;
44import org .testcontainers .CockroachDBTestImages ;
55import org .testcontainers .containers .CockroachContainer ;
66import org .testcontainers .db .AbstractContainerDatabaseTest ;
1414import static org .assertj .core .api .Assertions .assertThat ;
1515import static org .assertj .core .api .Assertions .assertThatThrownBy ;
1616
17- public class SimpleCockroachDBTest extends AbstractContainerDatabaseTest {
17+ class SimpleCockroachDBTest extends AbstractContainerDatabaseTest {
1818 static {
1919 // Postgres JDBC driver uses JUL; disable it to avoid annoying, irrelevant, stderr logs during connection testing
2020 LogManager .getLogManager ().getLogger ("" ).setLevel (Level .OFF );
2121 }
2222
2323 @ Test
24- public void testSimple () throws SQLException {
24+ void testSimple () throws SQLException {
2525 try ( // container {
2626 CockroachContainer cockroach = new CockroachContainer ("cockroachdb/cockroach:v22.2.3" )
2727 // }
@@ -36,7 +36,7 @@ public void testSimple() throws SQLException {
3636 }
3737
3838 @ Test
39- public void testExplicitInitScript () throws SQLException {
39+ void testExplicitInitScript () throws SQLException {
4040 try (
4141 CockroachContainer cockroach = new CockroachContainer (CockroachDBTestImages .COCKROACHDB_IMAGE )
4242 .withInitScript ("somepath/init_postgresql.sql" )
@@ -51,7 +51,7 @@ public void testExplicitInitScript() throws SQLException {
5151 }
5252
5353 @ Test
54- public void testWithAdditionalUrlParamInJdbcUrl () {
54+ void testWithAdditionalUrlParamInJdbcUrl () {
5555 CockroachContainer cockroach = new CockroachContainer (CockroachDBTestImages .COCKROACHDB_IMAGE )
5656 .withUrlParam ("sslmode" , "disable" )
5757 .withUrlParam ("application_name" , "cockroach" );
@@ -70,7 +70,7 @@ public void testWithAdditionalUrlParamInJdbcUrl() {
7070 }
7171
7272 @ Test
73- public void testWithUsernamePasswordDatabase () throws SQLException {
73+ void testWithUsernamePasswordDatabase () throws SQLException {
7474 try (
7575 CockroachContainer cockroach = new CockroachContainer (
7676 CockroachDBTestImages .FIRST_COCKROACHDB_IMAGE_WITH_ENV_VARS_SUPPORT
@@ -92,7 +92,7 @@ public void testWithUsernamePasswordDatabase() throws SQLException {
9292 }
9393
9494 @ Test
95- public void testAnExceptionIsThrownWhenImageDoesNotSupportEnvVars () {
95+ void testAnExceptionIsThrownWhenImageDoesNotSupportEnvVars () {
9696 CockroachContainer cockroachContainer = new CockroachContainer (
9797 CockroachDBTestImages .COCKROACHDB_IMAGE_WITH_ENV_VARS_UNSUPPORTED
9898 );
@@ -111,7 +111,7 @@ public void testAnExceptionIsThrownWhenImageDoesNotSupportEnvVars() {
111111 }
112112
113113 @ Test
114- public void testInitializationScript () throws SQLException {
114+ void testInitializationScript () throws SQLException {
115115 String sql =
116116 "USE postgres; \n " +
117117 "CREATE TABLE bar (foo VARCHAR(255)); \n " +
0 commit comments