Class TestServerAutoConfiguration


  • @Configuration
    @EnableConfigurationProperties(TemporalProperties.class)
    @ConditionalOnClass(name="io.temporal.testing.TestWorkflowEnvironment")
    @ConditionalOnProperty(prefix="spring.temporal",
                           name="test-server.enabled",
                           havingValue="true")
    public class TestServerAutoConfiguration
    extends java.lang.Object
    Provides a client based on `spring.temporal.testServer` section
    • Constructor Detail

      • TestServerAutoConfiguration

        public TestServerAutoConfiguration()
    • Method Detail

      • testTestWorkflowEnvironmentAdapter

        @Bean(name="temporalTestWorkflowEnvironmentAdapter")
        public TestWorkflowEnvironmentAdapter testTestWorkflowEnvironmentAdapter​(@Qualifier("temporalTestWorkflowEnvironment")
                                                                                 io.temporal.testing.TestWorkflowEnvironment testWorkflowEnvironment)
      • testWorkflowEnvironment

        @Bean(name="temporalTestWorkflowEnvironment",
              destroyMethod="close")
        public io.temporal.testing.TestWorkflowEnvironment testWorkflowEnvironment()