All the examples I could find on PACT has one to one mapping of producer api to consumer api. In our case all of our consumer apis will call more than one producer apis.
We are using pact Jvm. Our consumer contract tests run against consumer service. Producer mocks are defined in independent functions with @Pact attribute and contract tests have @PactTestFor(pactMethod = attribute, here "pactmockmethodname" is the function name which has producer mock. This setup is working fine. Now, We got into a case where our consumer api has to call more than one producer api. I tried defining multiple pact mocks but was not able to hook them to test as @PactTestFor attribute takes only one pactMethod. What is the suggested approach for this case.