holly-cummins / scratch-pact-extension

0 stars 0 forks source link

@State methods do not not have access to the CDI context #1

Open holly-cummins opened 1 year ago

holly-cummins commented 1 year ago

@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.

edeandrea commented 1 year ago

https://github.com/pact-foundation/pact-jvm/issues/1604#issuecomment-1252341344