Hello everyone, is it possible to have some help o...
# general
m
Hello everyone, is it possible to have some help on integrating Pact as producer in Guidewire or more in general in a Java legacy system? All the examples I find are for Spring, Quarkus etc Thanks šŸ™‚
y
What is the issue? Have you read the docs? Is there something you are stuck with. https://github.com/pact-foundation/pact-jvm?tab=readme-ov-file#i-am-writing-a-provider-and-want-to- You will be better off asking your question in the language specific channel, in your case #C9UN99H24
m
thanks, I was checking already this example https://github.com/pact-foundation/pact-jvm/blob/master/provider/junit/src/test/java/au/com/dius/pact/provider/junit/ContractTest.java but I'm not sure if it's the right one. I also cannot import PactRunner and ClientDriverRule even if I added provider dependencies. I will write in #C9UN99H24 šŸ™‚ thank you
@Yousaf Nabi (pactflow.io) now I got that ClientDriverRule was just an example, guess I have already Guidewire rules for running the embedded server. I'm not getting anyway where the Pact magic will happen. Where Pact will call my endpoint and where it will check what it receives?
m
Ok so as far as I understand in the Provider tests it's basically everything about preparing the state of the app (e.g. DB) and configuring the server port that Pact will have to use for the Http calls and the Provider name that was defined by the consumer