Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/market-gateway/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions apps/trading-worker/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions modules/market-data-adapter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
6 changes: 3 additions & 3 deletions modules/trading-persistence/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<String> APPLICATION_SCHEMAS = List.of(
"identity", "strategy", "bot", "storage", "market_data",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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");
Expand Down
Loading
Loading