snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Add basic injection capabilities to QuarkusTestResourceLifecycleManager #377

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Description

As discussed on Zulip, it would come in handy if there was some convenient injection support in QuarkusTestResourceLifecycleManager. Today you are on own since you only get the testInstance in inject() and you have to do all the hard reflection work yourself.

Implementation ideas

In a backward-compatible way, a new inject(BasicInjector injector) method could be introduced. That BasicInbjector (or whatever its name is) wraps the test instance and could provide some basic convenience methods like:


https://github.com/quarkusio/quarkus/issues/18698


$upstream:18698$