Skip to content

Commit

Permalink
GH-195 - Make sure that real database integration tests enable the sc…
Browse files Browse the repository at this point in the history
…hema initialization.
  • Loading branch information
odrotbohm committed May 2, 2023
1 parent af9fca5 commit 7d58e16
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.springframework.modulith.testapp.TestApplication;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.testcontainers.junit.jupiter.Testcontainers;

/**
Expand Down Expand Up @@ -279,10 +280,12 @@ class H2 extends TestBase {}

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

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

@Value
Expand Down

0 comments on commit 7d58e16

Please sign in to comment.