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
4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 148
148
149
149
<dependency >
150
150
<groupId >com.oracle.database.jdbc</groupId >
151
- <artifactId >ojdbc8 </artifactId >
151
+ <artifactId >ojdbc11 </artifactId >
152
152
<version >${oracle.version} </version >
153
153
<scope >test</scope >
154
154
</dependency >
229
229
230
230
<dependency >
231
231
<groupId >org.testcontainers</groupId >
232
- <artifactId >oracle-xe </artifactId >
232
+ <artifactId >oracle-free </artifactId >
233
233
<scope >test</scope >
234
234
</dependency >
235
235
Original file line number Diff line number Diff line change 24
24
import org .springframework .jdbc .core .JdbcTemplate ;
25
25
import org .springframework .jdbc .datasource .DriverManagerDataSource ;
26
26
import org .springframework .jdbc .datasource .init .ResourceDatabasePopulator ;
27
- import org .testcontainers .containers .OracleContainer ;
27
+ import org .testcontainers .oracle .OracleContainer ;
28
28
import org .testcontainers .utility .DockerImageName ;
29
29
30
30
/**
@@ -55,10 +55,9 @@ protected DataSource createDataSource() {
55
55
if (ORACLE_CONTAINER == null ) {
56
56
57
57
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 ) //
62
61
.withReuse (true );
63
62
container .start ();
64
63
LOG .info ("Oracle started" );
Original file line number Diff line number Diff line change 285
285
286
286
<dependency >
287
287
<groupId >org.testcontainers</groupId >
288
- <artifactId >oracle-xe </artifactId >
288
+ <artifactId >oracle-free </artifactId >
289
289
<scope >test</scope >
290
290
</dependency >
291
291
Original file line number Diff line number Diff line change 29
29
import org .springframework .jdbc .core .JdbcTemplate ;
30
30
import org .springframework .jdbc .datasource .DriverManagerDataSource ;
31
31
import org .springframework .util .ClassUtils ;
32
- import org .testcontainers .containers .OracleContainer ;
32
+ import org .testcontainers .oracle .OracleContainer ;
33
33
34
34
/**
35
35
* Utility class for testing against Oracle.
@@ -128,7 +128,9 @@ private static ExternalDatabase testContainer() {
128
128
if (testContainerDatabase == null ) {
129
129
130
130
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
132
134
container .start ();
133
135
134
136
testContainerDatabase = ProvidedDatabase .builder (container ) //
You can’t perform that action at this time.
0 commit comments