-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Labels
in: test supportSpring Boot integration testingSpring Boot integration testingmeta: waiting for feedbackWaiting for feedback of the original reporterWaiting for feedback of the original reporter
Description
Could you please add support of sql scripts in tests of module listeners (org.springframework.modulith.events.ApplicationModuleListener)?
I. e. this:
@Test
@Sql("classpath:sql/some-inserts.sql", "classpath:sql/file-abcd.sql")
do inserts rows in one transaction, but this:
@ApplicationModuleListener
fun on(event: SomeCoolStuffHappened) {
creates a new txn and does not see inserts from @Sql. W/o this support one need to mock a bunch of stuff.
Thanks in advance!
Metadata
Metadata
Assignees
Labels
in: test supportSpring Boot integration testingSpring Boot integration testingmeta: waiting for feedbackWaiting for feedback of the original reporterWaiting for feedback of the original reporter