11package org .testcontainers .junit .oracle ;
22
3- import org .junit .Test ;
3+ import org .junit .jupiter . api . Test ;
44import org .testcontainers .containers .OracleContainer ;
55import org .testcontainers .db .AbstractContainerDatabaseTest ;
66import org .testcontainers .utility .DockerImageName ;
1111import static org .assertj .core .api .Assertions .assertThat ;
1212import static org .assertj .core .api .Assertions .fail ;
1313
14- public class SimpleOracleTest extends AbstractContainerDatabaseTest {
14+ class SimpleOracleTest extends AbstractContainerDatabaseTest {
1515
1616 public static final DockerImageName ORACLE_DOCKER_IMAGE_NAME = DockerImageName .parse (
1717 "gvenzl/oracle-xe:21-slim-faststart"
@@ -32,7 +32,7 @@ private void runTest(OracleContainer container, String databaseName, String user
3232 }
3333
3434 @ Test
35- public void testDefaultSettings () throws SQLException {
35+ void testDefaultSettings () throws SQLException {
3636 try ( // container {
3737 OracleContainer oracle = new OracleContainer ("gvenzl/oracle-xe:21-slim-faststart" )
3838 // }
@@ -46,14 +46,14 @@ public void testDefaultSettings() throws SQLException {
4646 }
4747
4848 @ Test
49- public void testPluggableDatabase () throws SQLException {
49+ void testPluggableDatabase () throws SQLException {
5050 try (OracleContainer oracle = new OracleContainer (ORACLE_DOCKER_IMAGE_NAME ).withDatabaseName ("testDB" )) {
5151 runTest (oracle , "testDB" , "test" , "test" );
5252 }
5353 }
5454
5555 @ Test
56- public void testPluggableDatabaseAndCustomUser () throws SQLException {
56+ void testPluggableDatabaseAndCustomUser () throws SQLException {
5757 try (
5858 OracleContainer oracle = new OracleContainer ("gvenzl/oracle-xe:21-slim-faststart" )
5959 .withDatabaseName ("testDB" )
@@ -65,7 +65,7 @@ public void testPluggableDatabaseAndCustomUser() throws SQLException {
6565 }
6666
6767 @ Test
68- public void testCustomUser () throws SQLException {
68+ void testCustomUser () throws SQLException {
6969 try (
7070 OracleContainer oracle = new OracleContainer (ORACLE_DOCKER_IMAGE_NAME )
7171 .withUsername ("testUser" )
@@ -76,7 +76,7 @@ public void testCustomUser() throws SQLException {
7676 }
7777
7878 @ Test
79- public void testSID () throws SQLException {
79+ void testSID () throws SQLException {
8080 try (OracleContainer oracle = new OracleContainer (ORACLE_DOCKER_IMAGE_NAME ).usingSid ();) {
8181 runTest (oracle , "xepdb1" , "system" , "test" );
8282
@@ -87,7 +87,7 @@ public void testSID() throws SQLException {
8787 }
8888
8989 @ Test
90- public void testSIDAndCustomPassword () throws SQLException {
90+ void testSIDAndCustomPassword () throws SQLException {
9191 try (
9292 OracleContainer oracle = new OracleContainer (ORACLE_DOCKER_IMAGE_NAME )
9393 .usingSid ()
@@ -98,7 +98,7 @@ public void testSIDAndCustomPassword() throws SQLException {
9898 }
9999
100100 @ Test
101- public void testErrorPaths () throws SQLException {
101+ void testErrorPaths () throws SQLException {
102102 try (OracleContainer oracle = new OracleContainer (ORACLE_DOCKER_IMAGE_NAME )) {
103103 try {
104104 oracle .withDatabaseName ("XEPDB1" );
0 commit comments