File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
src/test/java/org/springframework/data/jdbc/testing
src/test/java/org/springframework/data/r2dbc/testing Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 148148
149149 <dependency >
150150 <groupId >com.oracle.database.jdbc</groupId >
151- <artifactId >ojdbc8 </artifactId >
151+ <artifactId >ojdbc11 </artifactId >
152152 <version >${oracle.version} </version >
153153 <scope >test</scope >
154154 </dependency >
229229
230230 <dependency >
231231 <groupId >org.testcontainers</groupId >
232- <artifactId >oracle-xe </artifactId >
232+ <artifactId >oracle-free </artifactId >
233233 <scope >test</scope >
234234 </dependency >
235235
Original file line number Diff line number Diff line change 2424import org .springframework .jdbc .core .JdbcTemplate ;
2525import org .springframework .jdbc .datasource .DriverManagerDataSource ;
2626import org .springframework .jdbc .datasource .init .ResourceDatabasePopulator ;
27- import org .testcontainers .containers .OracleContainer ;
27+ import org .testcontainers .oracle .OracleContainer ;
2828import org .testcontainers .utility .DockerImageName ;
2929
3030/**
@@ -55,10 +55,9 @@ protected DataSource createDataSource() {
5555 if (ORACLE_CONTAINER == null ) {
5656
5757 LOG .info ("Oracle starting..." );
58- DockerImageName dockerImageName = DockerImageName .parse ("gvenzl/oracle-free:23-slim" )
59- .asCompatibleSubstituteFor ("gvenzl/oracle-xe" );
60- OracleContainer container = new OracleContainer (dockerImageName )
61- .withDatabaseName ("freepdb2" )
58+ DockerImageName dockerImageName = DockerImageName .parse ("gvenzl/oracle-free:23.3-slim" );
59+ OracleContainer container = new OracleContainer (dockerImageName ) //
60+ .withStartupTimeoutSeconds (200 ) //
6261 .withReuse (true );
6362 container .start ();
6463 LOG .info ("Oracle started" );
Original file line number Diff line number Diff line change 285285
286286 <dependency >
287287 <groupId >org.testcontainers</groupId >
288- <artifactId >oracle-xe </artifactId >
288+ <artifactId >oracle-free </artifactId >
289289 <scope >test</scope >
290290 </dependency >
291291
Original file line number Diff line number Diff line change 2929import org .springframework .jdbc .core .JdbcTemplate ;
3030import org .springframework .jdbc .datasource .DriverManagerDataSource ;
3131import org .springframework .util .ClassUtils ;
32- import org .testcontainers .containers .OracleContainer ;
32+ import org .testcontainers .oracle .OracleContainer ;
3333
3434/**
3535 * Utility class for testing against Oracle.
@@ -128,7 +128,9 @@ private static ExternalDatabase testContainer() {
128128 if (testContainerDatabase == null ) {
129129
130130 try {
131- OracleContainer container = new OracleContainer ("gvenzl/oracle-xe:21.3.0-slim" ).withReuse (true );
131+ OracleContainer container = new OracleContainer ("23.3-slim" ) //
132+ .withReuse (true ) //
133+ .withStartupTimeoutSeconds (200 ); // the default of 60s isn't sufficient
132134 container .start ();
133135
134136 testContainerDatabase = ProvidedDatabase .builder (container ) //
You can’t perform that action at this time.
0 commit comments