Class CreateSchedulerHandlerTestBuilder
- java.lang.Object
-
- com.snowflake.connectors.application.scheduler.CreateSchedulerHandlerBuilder
-
- com.snowflake.connectors.application.scheduler.CreateSchedulerHandlerTestBuilder
-
public class CreateSchedulerHandlerTestBuilder extends CreateSchedulerHandlerBuilder
Builder for theCreateSchedulerHandler
.Allows for customization of the following handler components:
-
-
Constructor Summary
Constructors Constructor Description CreateSchedulerHandlerTestBuilder()
Constructor used by the test builder implementation.CreateSchedulerHandlerTestBuilder(Session session)
Creates a newCreateSchedulerHandlerTestBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSchedulerHandlerTestBuilder
withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.CreateSchedulerHandlerTestBuilder
withSchedulerCreator(SchedulerCreator schedulerCreator)
Sets the scheduler creator used to build the handler instance.-
Methods inherited from class com.snowflake.connectors.application.scheduler.CreateSchedulerHandlerBuilder
build
-
-
-
-
Constructor Detail
-
CreateSchedulerHandlerTestBuilder
public CreateSchedulerHandlerTestBuilder(Session session)
Creates a newCreateSchedulerHandlerTestBuilder
.The properties of this builder are initialised with:
ConnectorErrorHelper
built usingbuildDefault
SchedulerCreator
built usinggetInstance
- Parameters:
session
- Snowpark session object- Throws:
NullPointerException
- if the provided session object is null
-
CreateSchedulerHandlerTestBuilder
public CreateSchedulerHandlerTestBuilder()
Constructor used by the test builder implementation.
-
-
Method Detail
-
withErrorHelper
public CreateSchedulerHandlerTestBuilder withErrorHelper(ConnectorErrorHelper errorHelper)
Sets the error helper used to build the handler instance.- Overrides:
withErrorHelper
in classCreateSchedulerHandlerBuilder
- Parameters:
errorHelper
- connector error helper- Returns:
- this builder
-
withSchedulerCreator
public CreateSchedulerHandlerTestBuilder withSchedulerCreator(SchedulerCreator schedulerCreator)
Sets the scheduler creator used to build the handler instance.- Parameters:
schedulerCreator
- scheduler creator- Returns:
- this builder
-
-