Define host and port number in ValidatedPactProviderRule

Issue #72 resolved
Martin Reus created an issue

When using ValidatedPactProviderRule combined with a Feign client injected by the Spring framework, it would be nice to be possible to define a fixed port, instead of the randomly generated one.

Something like

new ValidatedPactProviderRule("spec.yaml", null, PROVIDER_ID, this, "localhost", 8888);

or some custom configurations passed as object argument to keep the constructor small.

The uploaded file is just the original implementation with the added 2 parameters.

Comments (5)

  1. HouserHavoc

    We are also having this issue in my organization.

    Had to have a workaround with a duplicate Java class, with an add overloaded constructor allowing the HOST and PORT arguments.

    Is this going to be added to a future version update?

  2. Log in to comment