Class UpdateWarehouseHandlerTestBuilder


  • public class UpdateWarehouseHandlerTestBuilder
    extends com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
    Test builder for the UpdateWarehouseHandler.

    Allows for customization of the following handler components:

    • UpdateWarehouseInputValidator
    • UpdateWarehouseCallback
    • UpdateWarehouseSdkCallback
    • ConnectorErrorHelper
    • ConnectorStatusService
    • ConnectorConfigurationService
    • Constructor Detail

      • UpdateWarehouseHandlerTestBuilder

        public UpdateWarehouseHandlerTestBuilder​(Session session)
        Creates a new UpdateWarehouseHandlerTestBuilder.

        The properties of this builder are initialised with:

        • a default implementation of UpdateWarehouseInputValidator
        • a default implementation of UpdateWarehouseCallback
        • a default implementation of UpdateWarehouseSdkCallback
        • ConnectorErrorHelper built using buildDefault
        • a default implementation of ConnectorStatusService
        • a default implementation of ConnectorConfigurationService
        Parameters:
        session - Snowpark session object
        Throws:
        NullPointerException - if the provided session object is null
      • UpdateWarehouseHandlerTestBuilder

        public UpdateWarehouseHandlerTestBuilder()
        Creates a new, empty UpdateWarehouseHandlerTestBuilder.

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

    • Method Detail

      • withInputValidator

        public UpdateWarehouseHandlerTestBuilder withInputValidator​(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseInputValidator inputValidator)
        Overrides:
        withInputValidator in class com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
      • withCallback

        public UpdateWarehouseHandlerTestBuilder withCallback​(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseCallback callback)
        Overrides:
        withCallback in class com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
      • withSdkCallback

        public UpdateWarehouseHandlerTestBuilder withSdkCallback​(com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseSdkCallback sdkCallback)
        Sets the sdk callback used to build the handler instance.
        Parameters:
        sdkCallback - warehouse update sdk callback
        Returns:
        this builder
      • withErrorHelper

        public UpdateWarehouseHandlerTestBuilder withErrorHelper​(com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper errorHelper)
        Overrides:
        withErrorHelper in class com.snowflake.connectors.application.configuration.warehouse.UpdateWarehouseHandlerBuilder
      • withConnectorStatusService

        public UpdateWarehouseHandlerTestBuilder withConnectorStatusService​(com.snowflake.connectors.application.status.ConnectorStatusService connectorStatusService)
        Sets the connector status service used to build the handler instance.
        Parameters:
        connectorStatusService - connector status service
        Returns:
        this builder
      • withConnectorConfigurationService

        public UpdateWarehouseHandlerTestBuilder withConnectorConfigurationService​(com.snowflake.connectors.application.configuration.connector.ConnectorConfigurationService connectorConfigurationService)
        Sets the connector configuration service used to build the handler instance.
        Parameters:
        connectorConfigurationService - connector configuration service
        Returns:
        this builder