Thomas Cederholm
05/16/2022, 7:16 PM@Pact
methods, and two @PactTestFor
methods.
Each such method sends its own request with its json payload.
Both tests have equal provider, and equal consumer identifier.
I tried to separate them by using different strings for the "given" statement in each test. That seemed to work, until the provider test ran.
So, I tried two different tests on the Provider to, one where I filter out the "first given", and another where I filter the "second given", but the tests fail since not all interactions get recorded.rholshausen
05/17/2022, 12:37 AMThomas Cederholm
05/17/2022, 5:16 AMThomas Cederholm
05/17/2022, 6:00 AMrholshausen
05/17/2022, 6:09 AMThomas Cederholm
05/17/2022, 6:10 AMThomas Cederholm
05/17/2022, 6:10 AMThomas Cederholm
05/17/2022, 6:11 AMrholshausen
05/17/2022, 6:19 AMrholshausen
05/17/2022, 6:19 AMThomas Cederholm
05/17/2022, 6:19 AMThomas Cederholm
05/17/2022, 9:21 AMDid not find a test class method annotated with @State("api2")
for Interaction "[name for api2 interaction]"
with Consumer "consumer1"
provider2 junit test that should test consumer1 (api2), breaks because:
Did not find a test class method annotated with @State("api1")
for Interaction "[name for api1 interaction]"
with Consumer "consumer1"
Thomas Cederholm
05/17/2022, 9:21 AMThomas Cederholm
05/17/2022, 9:22 AMThomas Cederholm
05/17/2022, 9:22 AM