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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -