Class SpringBootHttpTarget
-
- All Implemented Interfaces:
-
au.com.dius.pact.provider.junit.target.TestClassAwareTarget,au.com.dius.pact.provider.junitsupport.target.Target
public final class SpringBootHttpTarget extends HttpTargetThis class sets up an HTTP target configured with the springboot application. Basically, it allows the port to be overridden by the interaction runner which looks up the server port from the spring context.
-
-
Field Summary
Fields Modifier and Type Field Description private Integerportprivate final Stringhostprivate final Function0<IHttpClientFactory>httpClientFactoryprivate final Booleaninsecureprivate final Stringpathprivate final Stringprotocolprivate ValueResolvervalueResolverprivate IProviderVerifierverifier
-
Constructor Summary
Constructors Constructor Description SpringBootHttpTarget(Integer port)
-
Method Summary
Modifier and Type Method Description IntegergetPort()UnitsetPort(Integer port)UnittestInteraction(String consumerName, Interaction interaction, PactSource source, Map<String, Object> context, Boolean pending)-
Methods inherited from class au.com.dius.pact.provider.junit.target.HttpTarget
getHost, getHttpClientFactory, getInsecure, getPath, getProtocol, validForInteraction -
Methods inherited from class au.com.dius.pact.provider.junit.target.BaseTarget
addResultCallback, configureVerifier, getStateHandlers, getValueResolver, getVerifier, setStateHandlers, setTestClass, setValueResolver, setVerifier, withStateHandler, withStateHandlers -
Methods inherited from class au.com.dius.pact.provider.junitsupport.target.Target
getRequestClass -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-