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 HttpTarget
                        

    This 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Integer getPort()
      Unit setPort(Integer port)
      Unit testInteraction(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