File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
src/test/java/org/springframework/data/jpa/repository Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 150150
151151 <dependency >
152152 <groupId >org.testcontainers</groupId >
153- <artifactId >mysql</artifactId >
153+ <artifactId >testcontainers- mysql</artifactId >
154154 <scope >test</scope >
155155 <exclusions >
156156 <exclusion >
170170
171171 <dependency >
172172 <groupId >org.testcontainers</groupId >
173- <artifactId >postgresql</artifactId >
173+ <artifactId >testcontainers- postgresql</artifactId >
174174 <scope >test</scope >
175175 </dependency >
176176
192192
193193 <dependency >
194194 <groupId >org.testcontainers</groupId >
195- <artifactId >oracle-free</artifactId >
195+ <artifactId >testcontainers- oracle-free</artifactId >
196196 <scope >test</scope >
197197 </dependency >
198198
Original file line number Diff line number Diff line change 3333import org .springframework .test .context .junit .jupiter .SpringExtension ;
3434import org .springframework .transaction .annotation .EnableTransactionManagement ;
3535
36- import org .testcontainers .containers .PostgreSQLContainer ;
36+ import org .testcontainers .postgresql .PostgreSQLContainer ;
3737
3838/**
3939 * Testcase to verify Vector Search work with Postgres (PGvector).
@@ -81,9 +81,9 @@ public List<String> getManagedPackages() {
8181
8282 @ SuppressWarnings ("resource" )
8383 @ Bean (initMethod = "start" , destroyMethod = "start" )
84- public PostgreSQLContainer <?> container () {
84+ public PostgreSQLContainer container () {
8585
86- return new PostgreSQLContainer <> ("pgvector/pgvector:pg17" ) //
86+ return new PostgreSQLContainer ("pgvector/pgvector:pg17" ) //
8787 .withUsername ("postgres" ).withReuse (true );
8888 }
8989
Original file line number Diff line number Diff line change 4747import org .springframework .transaction .annotation .EnableTransactionManagement ;
4848import org .springframework .transaction .annotation .Transactional ;
4949
50- import org .testcontainers .containers .MySQLContainer ;
50+ import org .testcontainers .mysql .MySQLContainer ;
5151
5252/**
5353 * Testcase to verify {@link org.springframework.jdbc.object.StoredProcedure}s work with MySQL.
@@ -256,9 +256,9 @@ public List<String> getManagedPackages() {
256256
257257 @ SuppressWarnings ("resource" )
258258 @ Bean (initMethod = "start" , destroyMethod = "stop" )
259- public MySQLContainer <?> container () {
259+ public MySQLContainer container () {
260260
261- return new MySQLContainer <> ("mysql:8.0.24" ) //
261+ return new MySQLContainer ("mysql:8.0.24" ) //
262262 .withUsername ("test" ) //
263263 .withPassword ("test" ) //
264264 .withConfigurationOverride ("" );
Original file line number Diff line number Diff line change 5252import org .springframework .transaction .annotation .EnableTransactionManagement ;
5353import org .springframework .transaction .annotation .Transactional ;
5454
55- import org .testcontainers .containers .PostgreSQLContainer ;
55+ import org .testcontainers .postgresql .PostgreSQLContainer ;
5656
5757/**
5858 * Testcase to verify {@link org.springframework.jdbc.object.StoredProcedure}s work with Postgres.
@@ -325,9 +325,9 @@ public List<String> getManagedPackages() {
325325
326326 @ SuppressWarnings ("resource" )
327327 @ Bean (initMethod = "start" , destroyMethod = "stop" )
328- public PostgreSQLContainer <?> container () {
328+ public PostgreSQLContainer container () {
329329
330- return new PostgreSQLContainer <> ("postgres:15.3" ) //
330+ return new PostgreSQLContainer ("postgres:15.3" ) //
331331 .withUsername ("postgres" );
332332 }
333333 }
Original file line number Diff line number Diff line change 4747import org .springframework .transaction .annotation .EnableTransactionManagement ;
4848import org .springframework .transaction .annotation .Transactional ;
4949
50- import org .testcontainers .containers .PostgreSQLContainer ;
50+ import org .testcontainers .postgresql .PostgreSQLContainer ;
5151
5252/**
5353 * Testcase to verify {@link org.springframework.jdbc.object.StoredProcedure}s properly handle null values.
@@ -162,9 +162,9 @@ public List<String> getManagedPackages() {
162162
163163 @ SuppressWarnings ("resource" )
164164 @ Bean (initMethod = "start" , destroyMethod = "stop" )
165- public PostgreSQLContainer <?> container () {
165+ public PostgreSQLContainer container () {
166166
167- return new PostgreSQLContainer <> ("postgres:15.3" ) //
167+ return new PostgreSQLContainer ("postgres:15.3" ) //
168168 .withUsername ("postgres" );
169169 }
170170 }
You can’t perform that action at this time.
0 commit comments