From 58dbf12f5aec4830b1b2093dcb0e945bd9a326b5 Mon Sep 17 00:00:00 2001 From: Ryan Min <73128364+kcrmin@users.noreply.github.com> Date: Mon, 26 Oct 2026 22:24:35 +0900 Subject: [PATCH 1/2] build(deps): align testcontainers on the 2.0.5 bom Four modules imported the 1.21.4 BOM and 1.x artifact names while Spring Boot already resolved testcontainers core 2.0.5. --- apps/market-gateway/build.gradle.kts | 4 ++-- apps/trading-worker/build.gradle.kts | 6 +++--- modules/market-data-adapter/build.gradle.kts | 4 ++-- modules/trading-persistence/build.gradle.kts | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/market-gateway/build.gradle.kts b/apps/market-gateway/build.gradle.kts index aea9dda..f4ab419 100644 --- a/apps/market-gateway/build.gradle.kts +++ b/apps/market-gateway/build.gradle.kts @@ -12,8 +12,8 @@ dependencies { implementation("org.springframework.boot:spring-boot-starter") implementation("com.fasterxml.jackson.core:jackson-databind") testImplementation("org.springframework.boot:spring-boot-starter-test") - testImplementation(platform("org.testcontainers:testcontainers-bom:1.21.4")) - testImplementation("org.testcontainers:junit-jupiter") + testImplementation(platform("org.testcontainers:testcontainers-bom:2.0.5")) + testImplementation("org.testcontainers:testcontainers-junit-jupiter") testImplementation("org.testcontainers:testcontainers") testImplementation("org.java-websocket:Java-WebSocket:1.6.0") testImplementation("io.lettuce:lettuce-core") diff --git a/apps/trading-worker/build.gradle.kts b/apps/trading-worker/build.gradle.kts index 0547e7b..db8366a 100644 --- a/apps/trading-worker/build.gradle.kts +++ b/apps/trading-worker/build.gradle.kts @@ -64,9 +64,9 @@ dependencies { testImplementation("org.springframework.boot:spring-boot-starter-flyway") testImplementation("com.fasterxml.jackson.core:jackson-databind") testImplementation("org.flywaydb:flyway-database-postgresql") - testImplementation(platform("org.testcontainers:testcontainers-bom:1.21.4")) - testImplementation("org.testcontainers:junit-jupiter") - testImplementation("org.testcontainers:postgresql") + testImplementation(platform("org.testcontainers:testcontainers-bom:2.0.5")) + testImplementation("org.testcontainers:testcontainers-junit-jupiter") + testImplementation("org.testcontainers:testcontainers-postgresql") testImplementation("org.testcontainers:testcontainers") testRuntimeOnly("org.junit.platform:junit-platform-launcher") } diff --git a/modules/market-data-adapter/build.gradle.kts b/modules/market-data-adapter/build.gradle.kts index 6fc8d3b..4b75540 100644 --- a/modules/market-data-adapter/build.gradle.kts +++ b/modules/market-data-adapter/build.gradle.kts @@ -13,8 +13,8 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter") testImplementation("org.mockito:mockito-junit-jupiter") testImplementation(testFixtures(project(":modules:trading-messaging"))) - testImplementation(platform("org.testcontainers:testcontainers-bom:1.21.4")) - testImplementation("org.testcontainers:junit-jupiter") + testImplementation(platform("org.testcontainers:testcontainers-bom:2.0.5")) + testImplementation("org.testcontainers:testcontainers-junit-jupiter") testImplementation("org.testcontainers:testcontainers") testRuntimeOnly("org.junit.platform:junit-platform-launcher") implementation(project(":modules:trading-application")) diff --git a/modules/trading-persistence/build.gradle.kts b/modules/trading-persistence/build.gradle.kts index 3152e34..53236c2 100644 --- a/modules/trading-persistence/build.gradle.kts +++ b/modules/trading-persistence/build.gradle.kts @@ -21,9 +21,9 @@ dependencies { testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.flywaydb:flyway-core") testImplementation("org.flywaydb:flyway-database-postgresql") - testImplementation(platform("org.testcontainers:testcontainers-bom:1.21.4")) - testImplementation("org.testcontainers:junit-jupiter") - testImplementation("org.testcontainers:postgresql") + testImplementation(platform("org.testcontainers:testcontainers-bom:2.0.5")) + testImplementation("org.testcontainers:testcontainers-junit-jupiter") + testImplementation("org.testcontainers:testcontainers-postgresql") testRuntimeOnly("org.junit.platform:junit-platform-launcher") } From ca48eb4fdaef5a8b865c378df79b625d51281401 Mon Sep 17 00:00:00 2001 From: Ryan Min <73128364+kcrmin@users.noreply.github.com> Date: Mon, 26 Oct 2026 22:29:45 +0900 Subject: [PATCH 2/2] test(trading): use the 2.x postgresql container org.testcontainers.containers.PostgreSQLContainer is deprecated in 2.x; the backend already uses org.testcontainers.postgresql. --- .../trading/worker/TradingWorkerApplicationTest.java | 6 +++--- .../candidate/CandidateHandoffExactlyOnceE2ETest.java | 6 +++--- .../worker/candidate/ScopedCandidateCompositionE2ETest.java | 6 +++--- .../worker/control/BotControlIntegrationE2ETest.java | 4 ++-- .../worker/control/BotStopCommandSettlementE2ETest.java | 6 +++--- .../worker/control/StrategyBotOutboxPollerE2ETest.java | 6 +++--- .../ApprovedCorporateActionPollerE2ETest.java | 6 +++--- .../worker/execution/VirtualFillWorkerIntegrationTest.java | 4 ++-- .../trading/worker/market/MarketEventStreamE2ETest.java | 4 ++-- .../RoomEvaluationAccountOpenPollerE2ETest.java | 4 ++-- .../trading/worker/runtime/EvaluationLoopE2ETest.java | 4 ++-- .../persistence/budget/BudgetProjectionPersistenceTest.java | 6 +++--- .../candidate/CandidateBatchPersistenceTest.java | 6 +++--- .../canonical/CanonicalBaselineContractTest.java | 4 ++-- .../canonical/CanonicalInvariantContributionTest.java | 4 ++-- .../corporateaction/CorporateActionPersistenceTest.java | 6 +++--- .../persistence/e2e/FBundleRestartRecoveryE2ETest.java | 6 +++--- .../trading/persistence/event/BotEventPersistenceTest.java | 4 ++-- .../persistence/execution/VirtualFillPersistenceTest.java | 6 +++--- .../trading/persistence/fill/FillRecordPersistenceTest.java | 6 +++--- .../persistence/intent/OrderIntentBatchPersistenceTest.java | 6 +++--- .../trading/persistence/ledger/LedgerPersistenceTest.java | 4 ++-- .../persistence/order/OrderLifecyclePersistenceTest.java | 6 +++--- .../persistence/policy/TradingPolicyRegistryTest.java | 4 ++-- .../persistence/position/PositionLotPersistenceTest.java | 6 +++--- .../reservation/ResourceReservationPersistenceTest.java | 6 +++--- .../shorting/BorrowFeeAccrualPersistenceTest.java | 4 ++-- .../persistence/stop/BotStopSettlementPersistenceTest.java | 6 +++--- 28 files changed, 73 insertions(+), 73 deletions(-) diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/TradingWorkerApplicationTest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/TradingWorkerApplicationTest.java index cd5cd71..3637d3d 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/TradingWorkerApplicationTest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/TradingWorkerApplicationTest.java @@ -49,9 +49,9 @@ import org.springframework.test.context.DynamicPropertySource; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; @Testcontainers(disabledWithoutDocker = true) @SpringBootTest(properties = { @@ -102,8 +102,8 @@ class TradingWorkerApplicationTest { FEE_POLICY, "broker-rules:v1", "precision-rules:v1", "order-intent-composition:v1"); @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); /** * Stands the canonical schema up before the application context exists. diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/CandidateHandoffExactlyOnceE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/CandidateHandoffExactlyOnceE2ETest.java index b60b5a1..5c77f40 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/CandidateHandoffExactlyOnceE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/CandidateHandoffExactlyOnceE2ETest.java @@ -53,9 +53,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * F90: C's evaluation output is processed exactly once, whatever the queue does to it. @@ -89,8 +89,8 @@ class CandidateHandoffExactlyOnceE2ETest { private static final UUID FIXTURE_INSTRUMENT = UUID.fromString("8a35e6b5-cf84-4f63-920d-57c1f1b95df0"); @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); @DynamicPropertySource static void databaseProperties(DynamicPropertyRegistry registry) { diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/ScopedCandidateCompositionE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/ScopedCandidateCompositionE2ETest.java index e08bcf2..3501e61 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/ScopedCandidateCompositionE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/candidate/ScopedCandidateCompositionE2ETest.java @@ -24,9 +24,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * RT4: the production composition of a scoped candidate batch, proven on the real canonical schema. @@ -55,8 +55,8 @@ class ScopedCandidateCompositionE2ETest { private static final UUID BUFFER_POLICY = UUID.fromString("41000000-0000-4000-8000-000000000002"); @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); @DynamicPropertySource static void databaseProperties(DynamicPropertyRegistry registry) { diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotControlIntegrationE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotControlIntegrationE2ETest.java index 1e3fad3..b4a8927 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotControlIntegrationE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotControlIntegrationE2ETest.java @@ -39,9 +39,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * B91: B's start and stop commands reach real evaluation and real settlement, and stay consistent @@ -107,7 +107,7 @@ class BotControlIntegrationE2ETest { private static final Instant POLL_AT = Instant.parse("2026-08-02T13:29:30Z"); @Container - static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); @DynamicPropertySource static void properties(DynamicPropertyRegistry registry) { diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotStopCommandSettlementE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotStopCommandSettlementE2ETest.java index 47c860a..775db69 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotStopCommandSettlementE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/BotStopCommandSettlementE2ETest.java @@ -58,9 +58,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * F91: B's stop command reaches the real order and settlement state. @@ -119,8 +119,8 @@ class BotStopCommandSettlementE2ETest { FEE_POLICY, "broker-rules:v1", PRECISION, "order-intent-composition:v1"); @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); @DynamicPropertySource static void databaseProperties(DynamicPropertyRegistry registry) { diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/StrategyBotOutboxPollerE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/StrategyBotOutboxPollerE2ETest.java index 02d76a4..5b26111 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/StrategyBotOutboxPollerE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/control/StrategyBotOutboxPollerE2ETest.java @@ -33,9 +33,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * RT5: B's strategy-bot commands reach the control consumer through the backend's own transactional @@ -67,8 +67,8 @@ class StrategyBotOutboxPollerE2ETest { private static final String HANDLER = StrategyBotControlTransportConfiguration.HANDLER_ID; @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); @DynamicPropertySource static void databaseProperties(DynamicPropertyRegistry registry) { diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/corporateaction/ApprovedCorporateActionPollerE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/corporateaction/ApprovedCorporateActionPollerE2ETest.java index 23672e3..8cdac4c 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/corporateaction/ApprovedCorporateActionPollerE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/corporateaction/ApprovedCorporateActionPollerE2ETest.java @@ -48,9 +48,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * F92's initiation path against the real canonical schema: the market data owner's approved @@ -67,8 +67,8 @@ class ApprovedCorporateActionPollerE2ETest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID INSTRUMENT = UUID.fromString("f9200000-0000-4000-8000-000000000010"); private static final UUID LONELY_INSTRUMENT = diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/execution/VirtualFillWorkerIntegrationTest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/execution/VirtualFillWorkerIntegrationTest.java index 2cde237..9c20be6 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/execution/VirtualFillWorkerIntegrationTest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/execution/VirtualFillWorkerIntegrationTest.java @@ -18,9 +18,9 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; @Testcontainers(disabledWithoutDocker = true) @SpringBootTest(properties = { @@ -30,7 +30,7 @@ }) class VirtualFillWorkerIntegrationTest { @Container - private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); @DynamicPropertySource static void database(DynamicPropertyRegistry registry) { diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/market/MarketEventStreamE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/market/MarketEventStreamE2ETest.java index be89567..b249b41 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/market/MarketEventStreamE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/market/MarketEventStreamE2ETest.java @@ -34,9 +34,9 @@ import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; import org.testcontainers.containers.GenericContainer; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; import org.testcontainers.utility.DockerImageName; /** @@ -73,7 +73,7 @@ class MarketEventStreamE2ETest { private static final Instant EVENT_AT = Instant.parse("2026-08-02T14:30:00Z"); @Container - static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); @Container static final GenericContainer REDIS = diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/roomevaluation/RoomEvaluationAccountOpenPollerE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/roomevaluation/RoomEvaluationAccountOpenPollerE2ETest.java index 39e926a..41e6282 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/roomevaluation/RoomEvaluationAccountOpenPollerE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/roomevaluation/RoomEvaluationAccountOpenPollerE2ETest.java @@ -32,16 +32,16 @@ import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** Root #181's durable, atomic E-to-F account-opening acceptance path. */ @Testcontainers(disabledWithoutDocker = true) class RoomEvaluationAccountOpenPollerE2ETest { @Container - private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("f1810000-0000-4000-8000-000000000101"); private static final UUID ROOM = UUID.fromString("f1810000-0000-4000-8000-000000000102"); diff --git a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/runtime/EvaluationLoopE2ETest.java b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/runtime/EvaluationLoopE2ETest.java index 4e7c9f9..7fa013a 100644 --- a/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/runtime/EvaluationLoopE2ETest.java +++ b/apps/trading-worker/src/test/java/com/idea2strategy/trading/worker/runtime/EvaluationLoopE2ETest.java @@ -30,9 +30,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * RT2 end to end: a started bot, a market event, and a canonical order. @@ -71,7 +71,7 @@ class EvaluationLoopE2ETest { private static final Instant EVENT_AT = Instant.parse("2026-08-04T14:30:00Z"); @Container - static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); @DynamicPropertySource static void properties(DynamicPropertyRegistry registry) { diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/budget/BudgetProjectionPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/budget/BudgetProjectionPersistenceTest.java index 4987796..ce35835 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/budget/BudgetProjectionPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/budget/BudgetProjectionPersistenceTest.java @@ -29,9 +29,9 @@ import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the budget projection write path against the real canonical schema. @@ -48,8 +48,8 @@ class BudgetProjectionPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID ACCOUNT = UUID.fromString("a0000000-0000-4000-8000-000000000002"); private static final UUID BOT = UUID.fromString("30000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/candidate/CandidateBatchPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/candidate/CandidateBatchPersistenceTest.java index fb9c5ac..de87a98 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/candidate/CandidateBatchPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/candidate/CandidateBatchPersistenceTest.java @@ -21,17 +21,17 @@ import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; @Testcontainers(disabledWithoutDocker = true) class CandidateBatchPersistenceTest { private static final UUID BATCH_ID = UUID.fromString("10000000-0000-0000-0000-000000000001"); @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static DriverManagerDataSource dataSource; private static PostgresCandidateBatchClaimAdapter claimAdapter; diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalBaselineContractTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalBaselineContractTest.java index e2b938e..c28dffe 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalBaselineContractTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalBaselineContractTest.java @@ -10,9 +10,9 @@ import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * The pinned canonical baseline is the only way this repository can test the canonical schema it @@ -22,7 +22,7 @@ class CanonicalBaselineContractTest { @Container - private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); private static final List APPLICATION_SCHEMAS = List.of( "identity", "strategy", "bot", "storage", "market_data", diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalInvariantContributionTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalInvariantContributionTest.java index ed9f7f8..33ef8c4 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalInvariantContributionTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/canonical/CanonicalInvariantContributionTest.java @@ -12,9 +12,9 @@ import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the two canonical invariants this repository contributes, against the real canonical @@ -37,7 +37,7 @@ class CanonicalInvariantContributionTest { @Container - private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); private static final String BOT = "b1000000-0000-4000-8000-000000000001"; private static final String PARTITION = "c1000000-0000-4000-8000-000000000001"; diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/corporateaction/CorporateActionPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/corporateaction/CorporateActionPersistenceTest.java index 4f92b5d..2a9a440 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/corporateaction/CorporateActionPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/corporateaction/CorporateActionPersistenceTest.java @@ -49,9 +49,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the corporate-action write path against the real canonical schema. @@ -69,8 +69,8 @@ class CorporateActionPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("30000000-0000-4000-8000-000000000001"); private static final UUID PARTITION = UUID.fromString("31000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/e2e/FBundleRestartRecoveryE2ETest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/e2e/FBundleRestartRecoveryE2ETest.java index 26397b8..f8ca38d 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/e2e/FBundleRestartRecoveryE2ETest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/e2e/FBundleRestartRecoveryE2ETest.java @@ -70,9 +70,9 @@ import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * The F bundle end to end, and what a restart is allowed to change about it. @@ -98,8 +98,8 @@ class FBundleRestartRecoveryE2ETest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID ACCOUNT = UUID.fromString("a0000000-0000-4000-8000-00000000000f"); private static final UUID BOT = UUID.fromString("f0000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/event/BotEventPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/event/BotEventPersistenceTest.java index 5beefcc..8e38bd8 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/event/BotEventPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/event/BotEventPersistenceTest.java @@ -27,9 +27,9 @@ import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the bot event append against the real canonical schema. @@ -42,7 +42,7 @@ class BotEventPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("b2000000-0000-4000-8000-000000000001"); private static final UUID OTHER_BOT = UUID.fromString("b2000000-0000-4000-8000-000000000002"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/execution/VirtualFillPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/execution/VirtualFillPersistenceTest.java index 3720e8b..b30f1c6 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/execution/VirtualFillPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/execution/VirtualFillPersistenceTest.java @@ -25,10 +25,10 @@ import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; -import org.testcontainers.containers.PostgreSQLContainer; +import org.testcontainers.postgresql.PostgreSQLContainer; class VirtualFillPersistenceTest { - private static PostgreSQLContainer postgres; + private static PostgreSQLContainer postgres; private static DriverManagerDataSource dataSource; private static JdbcClient jdbc; private static PostgresFillDecisionStore store; @@ -41,7 +41,7 @@ class VirtualFillPersistenceTest { org.junit.jupiter.api.Assumptions.assumeTrue( DockerClientFactory.instance().isDockerAvailable(), "PostgreSQL integration test requires F08_POSTGRES_URL or an available Docker daemon"); - postgres = new PostgreSQLContainer<>("postgres:17-alpine"); + postgres = new PostgreSQLContainer("postgres:17-alpine"); postgres.start(); externalUrl = postgres.getJdbcUrl(); username = postgres.getUsername(); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/fill/FillRecordPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/fill/FillRecordPersistenceTest.java index 91caff4..3a0c2b3 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/fill/FillRecordPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/fill/FillRecordPersistenceTest.java @@ -40,9 +40,9 @@ import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.transaction.TransactionException; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the fill write path against the real canonical schema. @@ -57,8 +57,8 @@ class FillRecordPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("10000000-0000-4000-8000-000000000001"); private static final UUID PARTITION = UUID.fromString("11000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/intent/OrderIntentBatchPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/intent/OrderIntentBatchPersistenceTest.java index bc6e8c3..5bc2527 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/intent/OrderIntentBatchPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/intent/OrderIntentBatchPersistenceTest.java @@ -37,9 +37,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the order intent write path against the real canonical schema. @@ -52,8 +52,8 @@ class OrderIntentBatchPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("10000000-0000-4000-8000-000000000001"); private static final UUID PARTITION = UUID.fromString("11000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/ledger/LedgerPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/ledger/LedgerPersistenceTest.java index 797b8d5..1735e50 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/ledger/LedgerPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/ledger/LedgerPersistenceTest.java @@ -34,9 +34,9 @@ import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.transaction.TransactionSystemException; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the double entry write path against the real canonical schema. @@ -49,7 +49,7 @@ class LedgerPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("b3000000-0000-4000-8000-000000000001"); private static final UUID OTHER_BOT = UUID.fromString("b3000000-0000-4000-8000-000000000002"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/order/OrderLifecyclePersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/order/OrderLifecyclePersistenceTest.java index a05c2ca..ba3a07a 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/order/OrderLifecyclePersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/order/OrderLifecyclePersistenceTest.java @@ -46,9 +46,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the order write path against the real canonical schema. @@ -63,8 +63,8 @@ class OrderLifecyclePersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("10000000-0000-4000-8000-000000000001"); private static final UUID PARTITION = UUID.fromString("11000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/policy/TradingPolicyRegistryTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/policy/TradingPolicyRegistryTest.java index 8259882..a90b930 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/policy/TradingPolicyRegistryTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/policy/TradingPolicyRegistryTest.java @@ -16,9 +16,9 @@ import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves policy resolution against the real canonical tables. @@ -32,7 +32,7 @@ class TradingPolicyRegistryTest { @Container - private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); private static final Instant BEFORE_ANY = Instant.parse("2026-07-01T00:00:00Z"); private static final Instant FIRST_FROM = Instant.parse("2026-07-10T00:00:00Z"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/position/PositionLotPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/position/PositionLotPersistenceTest.java index ba10990..a55db8a 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/position/PositionLotPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/position/PositionLotPersistenceTest.java @@ -49,9 +49,9 @@ import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the FIFO position write path against the real canonical schema. @@ -66,8 +66,8 @@ class PositionLotPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("20000000-0000-4000-8000-000000000001"); private static final UUID PARTITION = UUID.fromString("21000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/reservation/ResourceReservationPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/reservation/ResourceReservationPersistenceTest.java index 5c4df56..22971f3 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/reservation/ResourceReservationPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/reservation/ResourceReservationPersistenceTest.java @@ -57,9 +57,9 @@ import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.transaction.support.TransactionTemplate; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the reservation write path against the real canonical schema. @@ -74,8 +74,8 @@ class ResourceReservationPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("30000000-0000-4000-8000-000000000001"); private static final UUID PARTITION = UUID.fromString("31000000-0000-4000-8000-000000000001"); diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/shorting/BorrowFeeAccrualPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/shorting/BorrowFeeAccrualPersistenceTest.java index 7ed10a5..14b8e56 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/shorting/BorrowFeeAccrualPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/shorting/BorrowFeeAccrualPersistenceTest.java @@ -22,13 +22,13 @@ import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; @Testcontainers(disabledWithoutDocker = true) class BorrowFeeAccrualPersistenceTest { - @Container static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer<>("postgres:17-alpine"); + @Container static final PostgreSQLContainer POSTGRES = new PostgreSQLContainer("postgres:17-alpine"); private static DriverManagerDataSource dataSource; private static JdbcClient jdbc; diff --git a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/stop/BotStopSettlementPersistenceTest.java b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/stop/BotStopSettlementPersistenceTest.java index e935ad9..8c59844 100644 --- a/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/stop/BotStopSettlementPersistenceTest.java +++ b/modules/trading-persistence/src/test/java/com/idea2strategy/trading/persistence/stop/BotStopSettlementPersistenceTest.java @@ -45,9 +45,9 @@ import org.springframework.jdbc.core.simple.JdbcClient; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.jdbc.support.JdbcTransactionManager; -import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; +import org.testcontainers.postgresql.PostgreSQLContainer; /** * Proves the bot stop settlement write path against the real canonical schema. @@ -63,8 +63,8 @@ class BotStopSettlementPersistenceTest { @Container - private static final PostgreSQLContainer POSTGRES = - new PostgreSQLContainer<>("postgres:17-alpine"); + private static final PostgreSQLContainer POSTGRES = + new PostgreSQLContainer("postgres:17-alpine"); private static final UUID BOT = UUID.fromString("30000000-0000-4000-8000-000000000001"); private static final UUID OTHER_BOT = UUID.fromString("30000000-0000-4000-8000-000000000002");