Closed
Description
Hi,
The BeforeTestClassEvent
is not published by the EventPublishingTestExecutionListener
since hasApplicationContext()
returns false
.
See here for a reproducer.
The JavaDoc of BeforeTestClass only mentions that the EventPublishingTestExecutionListener
must be registered as TestExecutionListener
which it is by default (so I also suggest reworking the documentation as normally no @TestExecutionListeners
annotation is needed).