Skip to content

Commit 7d58e16

Browse files
committed
GH-195 - Make sure that real database integration tests enable the schema initialization.
1 parent af9fca5 commit 7d58e16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-modulith-events/spring-modulith-events-jdbc/src/test/java/org/springframework/modulith/events/jdbc/JdbcEventPublicationRepositoryIntegrationTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.springframework.modulith.testapp.TestApplication;
4242
import org.springframework.test.context.ActiveProfiles;
4343
import org.springframework.test.context.ContextConfiguration;
44+
import org.springframework.test.context.TestPropertySource;
4445
import org.testcontainers.junit.jupiter.Testcontainers;
4546

4647
/**
@@ -279,10 +280,12 @@ class H2 extends TestBase {}
279280

280281
@Nested
281282
@ActiveProfiles("postgres")
283+
@TestPropertySource(properties = "spring.modulith.events.jdbc.schema-initialization.enabled=true")
282284
class Postgres extends TestBase {}
283285

284286
@Nested
285287
@ActiveProfiles("mysql")
288+
@TestPropertySource(properties = "spring.modulith.events.jdbc.schema-initialization.enabled=true")
286289
class MySQL extends TestBase {}
287290

288291
@Value

0 commit comments

Comments
 (0)