Class UpdateConnectionConfigurationHandlerTestBuilder


  • public class UpdateConnectionConfigurationHandlerTestBuilder
    extends Object
    Test builder for the UpdateConnectionConfigurationHandler.

    Allows for customization of the following handler components:

    • ConnectionConfigurationInputValidator
    • ConnectionConfigurationCallback
    • DraftConnectionValidator
    • ConnectionConfigurationCallback
    • ConnectionValidator
    • ConnectorErrorHelper
    • ConnectionConfigurationService
    • ConnectorStatusService
    • Constructor Detail

      • UpdateConnectionConfigurationHandlerTestBuilder

        public UpdateConnectionConfigurationHandlerTestBuilder()
        Creates a new, empty UpdateConnectionConfigurationHandlerTestBuilder.

        Properties of the new builder instance must be fully customized before a handler instance can be built.

    • Method Detail

      • withInputValidator

        public UpdateConnectionConfigurationHandlerTestBuilder withInputValidator​(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationInputValidator inputValidator)
        Parameters:
        inputValidator - implementation of ConnectionConfigurationInputValidator interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • withDraftCallback

        public UpdateConnectionConfigurationHandlerTestBuilder withDraftCallback​(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationCallback draftCallback)
        Parameters:
        draftCallback - implementation of ConnectionConfigurationCallback interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • withDraftConnectionValidator

        public UpdateConnectionConfigurationHandlerTestBuilder withDraftConnectionValidator​(com.snowflake.connectors.application.configuration.connection.DraftConnectionValidator draftConnectionValidator)
        Parameters:
        draftConnectionValidator - implementation of DraftConnectionValidator interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • withCallback

        public UpdateConnectionConfigurationHandlerTestBuilder withCallback​(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationCallback callback)
        Parameters:
        callback - implementation of ConnectionConfigurationCallback interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • withConnectionValidator

        public UpdateConnectionConfigurationHandlerTestBuilder withConnectionValidator​(com.snowflake.connectors.application.configuration.connection.ConnectionValidator connectionValidator)
        Parameters:
        connectionValidator - implementation of ConnectionValidator interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • withErrorHelper

        public UpdateConnectionConfigurationHandlerTestBuilder withErrorHelper​(com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper errorHelper)
        Parameters:
        errorHelper - implementation of ConnectorErrorHelper interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • withConnectionConfigurationService

        public UpdateConnectionConfigurationHandlerTestBuilder withConnectionConfigurationService​(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationService connectionConfigurationService)
        Parameters:
        connectionConfigurationService - implementation of ConnectionConfigurationService interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • withConnectorStatusService

        public UpdateConnectionConfigurationHandlerTestBuilder withConnectorStatusService​(com.snowflake.connectors.application.status.ConnectorStatusService connectorStatusService)
        Parameters:
        connectorStatusService - implementation of ConnectorStatusService interface that will be used in built UpdateConnectionConfigurationHandler
        Returns:
        this builder instance with updated attribute
      • build

        public com.snowflake.connectors.application.configuration.connection.UpdateConnectionConfigurationHandler build()
        Returns:
        an instance of UpdateConnectionConfigurationHandler with customised services