add an additional construction
Issue #119
duplicate
Add the following constructor to the open source project: https://bitbucket.org/atlassian/swagger-request-validator/src/267f1c2342a93a5bc236a74094bb4d73404a29b3/swagger-request-validator-pact/?at=master
public ValidatedPactProviderRule(final String swaggerJsonUrl, final String basePathOverride, final String providerId, final Object target, String host, int port) { this.delegate = new PactProviderRule(providerId, host, port, target); this.providerId = providerId; this.target = target;
this.validator = SwaggerRequestResponseValidator
.createFor(swaggerJsonUrl)
.withLevelResolver(PactLevelResolverFactory.create())
.withBasePathOverride(basePathOverride)
.build();
}
Comments (4)
-
-
Seems like a duplicate to
#72where a second constructor with host and port was added. -
Indeed :)
-
- changed status to duplicate
Duplicate of
#72. - Log in to comment
Just to confirm - what you're looking for is a way to override the host/port used in the underlying
PactProviderRule
?