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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -