pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 479 forks source link

Documentation needed for running amqp tests as provider #1233

Open cksharma11 opened 3 years ago

cksharma11 commented 3 years ago

I'm trying to run amqp tests as a provider but didn't find anything useful in the docs related to that.

anto-ac commented 3 years ago

What about this? https://github.com/DiUS/pact-jvm/tree/master/provider/junit#example-of-message-test

cksharma11 commented 3 years ago

What about this? https://github.com/DiUS/pact-jvm/tree/master/provider/junit#example-of-message-test

@anto-ac Thanks for the quick reply :)

I'm not very sure if the above link helped me. Let me explain the scenario:
There is a service which is consuming messages provided by my service which is in Clojure. The other service has written the consumer tests and now I want to run the PACT tests as the producer.

Hope this helps?

anto-ac commented 3 years ago

What I linked shows an example of a provider test for messages. Iā€™m confused šŸ˜Š

anto-ac commented 3 years ago

And this is for the consumer side https://github.com/DiUS/pact-jvm/tree/master/consumer/junit#consumer-test-for-a-message-consumer

cksharma11 commented 3 years ago

What I linked shows an example of a provider test for messages. Iā€™m confused šŸ˜Š

@anto-ac The example you shared is for junit can you share an example for Clojure?

anto-ac commented 3 years ago

@cksharma11 Does this help? https://github.com/DiUS/pact-jvm/issues/1099