We're updating the issue view to help you get more done.Learn more

Replace SeamAutowire with real CDI in tests

Replacing Autowire with real CDI will enable less fragile, more accurate tests (eg multiple scopes), and the use of CDI interceptors. SeamAutowire for CDI is still based on Seam conventions like bean names, which means changing or removing a bean name might break a test.

Note that it is currently not possible to use CdiUnitRunner (for CDI-Unit injections) at the same time as DataProviderRunner (for parameterised test methods). It may be possible to implement delegation in one of the runners. This would be ideal.

If not, we could try starting CDI scopes (eg with DeltaSpike Container Control) and inject beans into the test ourselves.

Status

Assignee

Carlos Munoz

Reporter

Sean Flanigan

Story point estimate

5

Epic Link

Sprint

None

Fix versions

Priority

unspecified