Skip to content

Improve documentation for TestContext events #27757

Closed
@biergit

Description

@biergit

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).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions