tock / ai.tock.bot.test / TestContext

# TestContext

`open class TestContext` (source)

A test context initialized for each test.

### Constructors

#### <init> | A test context initialized for each test. `TestContext()`

### Properties

#### botAnswerInterceptors | The bot answer interceptors to apply. `val botAnswerInterceptors: MutableList<BotAnswerInterceptor>`
#### botBusMockContext | The context of the bus. `lateinit var botBusMockContext: BotBusMockContext`
#### mockedBotApplicationConfigurationDAO | Default mocked BotApplicationConfigurationDAO. `var mockedBotApplicationConfigurationDAO: BotApplicationConfigurationDAO`
#### mockedDialogFlowDAO | Default mocked UserLock. `var mockedDialogFlowDAO: DialogFlowDAO`
#### mockedDialogReportDAO | Default mocked DialogReportDAO. `var mockedDialogReportDAO: DialogReportDAO`
#### mockedFeatureDAO | Default mocked UserLock. `var mockedFeatureDAO: FeatureDAO`
#### mockedI18nDAO | Default mocked I18nDAO. `var mockedI18nDAO: I18nDAO`
#### mockedNlpClient | Default mocked NlpClient. `var mockedNlpClient: NlpClient`
#### mockedNlpController | Default newMocked NlpController. `var mockedNlpController: NlpController`
#### mockedStoryDefinitionConfigurationDAO | Default mocked StoryDefinitionConfigurationDAO. `var mockedStoryDefinitionConfigurationDAO: StoryDefinitionConfigurationDAO`
#### mockedTestPlanDAO | Default mocked TestPlanDAO. `var mockedTestPlanDAO: TestPlanDAO`
#### mockedUserLock | Default mocked UserLock. `var mockedUserLock: UserLock`
#### mockedUserReportDAO | Default mocked UserReportDAO. `var mockedUserReportDAO: UserReportDAO`
#### mockedUserTimelineDAO | Default mocked UserTimelineDAO. `var mockedUserTimelineDAO: UserTimelineDAO`
#### storyHandlerListeners | The story handler listeners to apply. `val storyHandlerListeners: MutableList<StoryHandlerListener>`
#### testInjector | KodeinInjector used in tests. `val testInjector: KodeinInjector`
#### testKodein | The test Kodein injected. `val testKodein: Kodein`

### Functions

#### createTestInjector | Default test testInjector creation. `open fun createTestInjector(): KodeinInjector`
#### defaultConnectorType | Default ConnectorType if none is provided. `open fun defaultConnectorType(): ConnectorType`
#### defaultLocale | Default Locale if none is provided. `open fun defaultLocale(): Locale`
#### defaultPlayerId | Default PlayerId if none is provided. `open fun defaultPlayerId(): PlayerId`
#### defaultStoryDefinition | Default StoryDefinition if none is provided. `open fun defaultStoryDefinition(botDefinition: BotDefinition): StoryDefinition`
#### importModule | Default mocked Tock Ioc. `open fun importModule(): Builder.() -> Unit`
#### newMock | Creates a new mock. `fun <T : Any> newMock(): T` `open fun <T : Any> newMock(kClass: KClass<T>): T`