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 https://github.com/beforeeach methods we have access to the CDI context, but in https://github.com/State methods, we don't - even though it would be very useful in those methods.
This was discovered by @edeandrea.
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 https://github.com/beforeeach methods we have access to the CDI context, but in https://github.com/State methods, we don't - even though it would be very useful in those methods.
https://github.com/pact-foundation/pact-jvm/issues/1604#issuecomment-1252341344 has sample code showing the issue.