java - The method getPactFile() from the type ConsumerInfo is deprecated -


i've got following 2 lines 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 message:

the method getpactfile() type consumerinfo deprecated

what use instead?

thanks in advance.

if looking verify pact provider using junit, can follow 1 instead:

https://github.com/dius/pact-jvm/tree/master/pact-jvm-provider-junit


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

sharepoint online - C# CSOM SPView ListItemCollection did not update after I add new field in the SP view -