Hi :wave: How can I use Pact JVM to verify that a...
# pact-jvm
b
Hi 👋 How can I use Pact JVM to verify that a provider serialize a JSON that conform with a pact file? Just like this the example on Pact Net https://docs.pact.io/implementation_guides/net/docs/messaging-pacts#provider-tests.
m
Sorry, I didn’t understand the question. All Pact SDKs serialise pact files, what are you trying to test?
b
I'm trying to verify that a message provider produce a message that is valid. I have a pact file that's generated by a message consumer. Now, I want to use the pact file in a provider's unit test to verify that the produced message conformed with Pact. I can't find this example on pact-jvm, unlike in pact-net.
m
We have a number of example projects here that might help: https://support.smartbear.com/swagger/contract-testing/docs/en/examples.html
👀 1
b
Thank you very much. 🙏
👍 1