Skip to content
Discussion options

You must be logged in to vote

So there is currently no "Quarkus" way to solve this?

I don't think there is, at least in terms of CDI interception. Nested classes cannot become beans; the biggest issue is the way they are instantiated and the affect it would have in terms of bean (re)creation and proxyability.
If you really need CDI interception of test instances, avoid using @Nested and organize tests differently.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@HerrDerb
Comment options

@manovotn
Comment options

@Ladicek
Comment options

Ladicek Oct 23, 2023
Collaborator

@manovotn
Comment options

Answer selected by HerrDerb
@HerrDerb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/arc Issue related to ARC (dependency injection)
3 participants