File tree Expand file tree Collapse file tree
src/test/java/com/itasocialacademy/oitassist Expand file tree Collapse file tree Original file line number Diff line number Diff line change 194194 <artifactId >spring-boot-testcontainers</artifactId >
195195 <scope >test</scope >
196196 </dependency >
197- <dependency >
198- <groupId >org.testcontainers</groupId >
199- <artifactId >junit-jupiter</artifactId >
200- <version >1.18.3</version >
201- <scope >test</scope >
202- </dependency >
203197 </dependencies >
204198 <dependencyManagement >
205199 <dependencies >
Original file line number Diff line number Diff line change 55import org .springframework .boot .testcontainers .service .connection .ServiceConnection ;
66import org .springframework .test .context .ActiveProfiles ;
77import org .testcontainers .containers .PostgreSQLContainer ;
8- import org .testcontainers .junit .jupiter .Container ;
9- import org .testcontainers .junit .jupiter .Testcontainers ;
108import org .testcontainers .utility .DockerImageName ;
119
12- @ Testcontainers
1310@ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .NONE )
1411@ ActiveProfiles ("test" )
1512@ Tag ("integration" )
1613public abstract class PostgresIntegrationTest {
1714
18- @ Container
1915 @ ServiceConnection
2016 static final PostgreSQLContainer <?> POSTGRES =
2117 new PostgreSQLContainer <>(DockerImageName .parse ("postgres:16-alpine" ));
18+
19+ static {
20+ POSTGRES .start ();
21+ }
2222}
You can’t perform that action at this time.
0 commit comments