Class StubRunnerConfiguration

java.lang.Object
org.springframework.cloud.contract.stubrunner.spring.StubRunnerConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(StubRunnerProperties.class) @ConditionalOnMissingBean(type="org.springframework.cloud.contract.wiremock.WiremockServerConfiguration") @Import(org.springframework.cloud.contract.stubrunner.spring.StubRunnerPortBeanPostProcessor.class) public class StubRunnerConfiguration extends Object
Configuration that initializes a BatchStubRunner that runs StubRunner instance for each stub.
Author:
Marcin Grzejszczak, EddĂș MelĂ©ndez
  • Constructor Details

    • StubRunnerConfiguration

      public StubRunnerConfiguration()
  • Method Details

    • batchStubRunner

      @Bean public BatchStubRunner batchStubRunner(org.springframework.beans.factory.BeanFactory beanFactory)
      Bean that initializes stub runners, runs them and on shutdown closes them. Upon its instantiation JAR with stubs is downloaded and unpacked to a temporary folder and WireMock server are started for each of those stubs
      Parameters:
      beanFactory - bean factory
      Returns:
      the batch stub runner bean
    • batchStubRunnerBeanPostProcessor

      @Bean public org.springframework.beans.factory.config.BeanPostProcessor batchStubRunnerBeanPostProcessor(BatchStubRunner runner)