Package ai.tock.bot.test
Class BotBusMockInitializersKt
-
- All Implemented Interfaces:
public final class BotBusMockInitializersKt
-
-
Method Summary
Modifier and Type Method Description final static BotBusMockstartNewBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)Provides a mock initialized with the specified StoryDefinition and starts the story. final static BotBusMocknewBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)Provides a mock initialized with the specified StoryDefinition. final static BotBusMockContextnewBusMockContext(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId, PlayerId botId, Action action, UserInterfaceType userInterfaceType, UserPreferences userPreferences, List<ConnectorType> secondaryConnectorTypes)Provides a mock context initialized with the specified StoryDefinition. final static BotBusMockstartBusMock(TestContext testContext)Provides a mock context initialized with the specified TestContext and runs the story. final static BotBusMockbusMock(TestContext testContext)Provides a mock context initialized with the specified TestContext. -
-
Method Detail
-
startNewBusMock
final static BotBusMock startNewBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)
Provides a mock initialized with the specified StoryDefinition and starts the story.
-
newBusMock
final static BotBusMock newBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)
Provides a mock initialized with the specified StoryDefinition.
-
newBusMockContext
final static BotBusMockContext newBusMockContext(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId, PlayerId botId, Action action, UserInterfaceType userInterfaceType, UserPreferences userPreferences, List<ConnectorType> secondaryConnectorTypes)
Provides a mock context initialized with the specified StoryDefinition.
-
startBusMock
final static BotBusMock startBusMock(TestContext testContext)
Provides a mock context initialized with the specified TestContext and runs the story.
-
busMock
final static BotBusMock busMock(TestContext testContext)
Provides a mock context initialized with the specified TestContext.
-
-
-
-