Hi all, we have pending/WIP pacts enabled and ran ...
# pact-jvm
s
Hi all, we have pending/WIP pacts enabled and ran into an interesting case with Mockito and JUnit 5: A consumer contributed a failing WIP pact to provider A but Provider A wrote their test with Mockito in their
@State
method. Because the consumers contract failed early, mockito's
UnnecessaryStubbingException
was thrown because the
@State
method wasn't called and it wasn't using lenient stubbing. It looks like the way this failed, actually failed the build. Unlike "normal" pending/WIP pact failures. Is this expected?