Skip to content

Add ability to add to beginning of TestExecutionListener list in TestContextManager [SPR-7595] #12251

@spring-projects-issues

Description

@spring-projects-issues

Mark Pollack opened SPR-7595 and commented

The Spring AMQP project has a need to start an external process (the rabbitmq broker) before any of the applications contexts are bootstrapped. The method registerTestExecutionListeners only allows adding to the end of the execution listener list.

See org.springframework.amqp.rabbit.test.SpringRabbitJUnit4ClassRunner.createTestContextManager for brute force reflection workaround.

The TestContextManager is quite closed to extension as well, would be nice to open it up to be more subclass friendly.


Affects: 3.0.4

Referenced from: commits 3f04625

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions