Class UpdateConnectionConfigurationHandlerTestBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.configuration.connection.UpdateConnectionConfigurationHandlerTestBuilder
-
public class UpdateConnectionConfigurationHandlerTestBuilder extends Object
Test builder for theUpdateConnectionConfigurationHandler
.Allows for customization of the following handler components:
ConnectionConfigurationInputValidator
ConnectionConfigurationCallback
DraftConnectionValidator
ConnectionConfigurationCallback
ConnectionValidator
ConnectorErrorHelper
ConnectionConfigurationService
ConnectorStatusService
-
-
Constructor Summary
Constructors Constructor Description UpdateConnectionConfigurationHandlerTestBuilder()
Creates a new, emptyUpdateConnectionConfigurationHandlerTestBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.snowflake.connectors.application.configuration.connection.UpdateConnectionConfigurationHandler
build()
UpdateConnectionConfigurationHandlerTestBuilder
withCallback(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationCallback callback)
UpdateConnectionConfigurationHandlerTestBuilder
withConnectionConfigurationService(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationService connectionConfigurationService)
UpdateConnectionConfigurationHandlerTestBuilder
withConnectionValidator(com.snowflake.connectors.application.configuration.connection.ConnectionValidator connectionValidator)
UpdateConnectionConfigurationHandlerTestBuilder
withConnectorStatusService(com.snowflake.connectors.application.status.ConnectorStatusService connectorStatusService)
UpdateConnectionConfigurationHandlerTestBuilder
withDraftCallback(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationCallback draftCallback)
UpdateConnectionConfigurationHandlerTestBuilder
withDraftConnectionValidator(com.snowflake.connectors.application.configuration.connection.DraftConnectionValidator draftConnectionValidator)
UpdateConnectionConfigurationHandlerTestBuilder
withErrorHelper(com.snowflake.connectors.common.exception.helper.ConnectorErrorHelper errorHelper)
UpdateConnectionConfigurationHandlerTestBuilder
withInputValidator(com.snowflake.connectors.application.configuration.connection.ConnectionConfigurationInputValidator inputValidator)
-
-
-
Constructor Detail
-
UpdateConnectionConfigurationHandlerTestBuilder
public UpdateConnectionConfigurationHandlerTestBuilder()
Creates a new, emptyUpdateConnectionConfigurationHandlerTestBuilder
.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 ofConnectionConfigurationInputValidator
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 ofConnectionConfigurationCallback
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 ofDraftConnectionValidator
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 ofConnectionConfigurationCallback
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 ofConnectionValidator
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 ofConnectorErrorHelper
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 ofConnectionConfigurationService
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 ofConnectorStatusService
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
-
-