Skip to content

Spring autowiring fails for additional @ScenarioStage with JUnit5 #494

@catchin

Description

@catchin

When adding an additional stage to a class as documented here, no Spring autowiring is executed for JUnit5.

An example test case here fails with the error that testBean is null.

Also constructor injection does not work although it works for stages defined as generic parameters of the extends clause.

When executing the same test case with JUnit4, it succeeds, also with constructor injection - see here

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions