I've got the following two lines from this example: https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-provider
consumer.setPactFile(new File("target/pacts/ping_client-ping_service.json"));
testConsumerPact = (Pact) PactReader.loadPact(consumer.getPactFile());
They result in the message:
The method getPactFile() from the type ConsumerInfo is deprecated
What to use instead?
Thanks for your help in advance.