NullPointerException
when trying to resolve Junit5 consumer test class ctor params
#1666
Labels
bug
Indicates an unexpected problem or unintended behavior
Scenario:
Using
au.com.dius.pact.consumer
:junit5
version4.4.4
Error message:
The issue seems to be in the method
supportsParameter
when trying to get verification context from the store:store.get("interactionContext") as PactVerificationContext
.This gets called before creation of the test object so
beforeEach
lifecycle which inits"interactionContext"
is not called yet, leading to a null value which failed to be casted intoPactVerificationContext
.The text was updated successfully, but these errors were encountered: