This may need a Quarkus change - or be impossible to fix - but this issue can track the investigation. I assume this is a classloader issue, because in @BeforeEach methods we have access to the CDI context, but in @State methods, we don't - even though it would be very useful in those methods.
@edeandrea can provide sample code.
This may need a Quarkus change - or be impossible to fix - but this issue can track the investigation. I assume this is a classloader issue, because in @BeforeEach methods we have access to the CDI context, but in @State methods, we don't - even though it would be very useful in those methods.