Pact is a cross-language tool that provides Consumer Driven Contracts testing.
Questions tagged [pact-java]
35 questions
0
votes
1 answer
pact HTTP message consumer
I have a relationship between two components/microservices where component A sends events by HTTP to component B. In a traditional pact HTTP consumer/provider pattern, A is the consumer of B since A is sending the request and B is responding.…
Joel Andersson
- 199
- 7
0
votes
1 answer
How to have tests distributed across classes at provider end for same consumer
I have a scenario where my provider service provides 3 functionalities. At consumer end I have 3 different classes to write tests for these 3 functionalities. When pact file is generated, it encompasses all the tests with same consumer-provider…
Aniket Gadre
- 1
- 1
0
votes
2 answers
pact-jvm Consumer Pact Test
I'm new to pact. My project is Java project. I read through pact documentation and found the github project https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-consumer-junit
I imported it in my eclipse IDE.
I'm stuck from here.
1. Which test to…
sandstone
- 1
- 2
0
votes
1 answer
Missing 'PactFragment' in package au.com.dius.pact.model
I am new to Pact.
I downloaded the code from Github, "pact-jvm" project.
I created a new project in IntelliJ from "existing source" with Gradle setting.
It imported all the packages fine.
However, when I tried running some of the tests in it, I got…
Eric
- 171
- 1
- 6
0
votes
1 answer
Use Pact and JUnit to test SSL secured API
I am trying to implement pact tests between two of our server systems, but unfortunately I am struggling with implementing the consumer tests:
I included the pact-jvm-consumer-junit_2.11 artifact and created a provided like this using a…
Nitek
- 2,277
- 2
- 20
- 37