data class BotBusMockLog
(source)
The actions sent by the mocked bus.
<init> |
The actions sent by the mocked bus. BotBusMockLog(action: Action, delay: Long) |
action |
The action sent. val action: Action |
delay |
The delay before the action is sent. val delay: Long |
assert |
Assert that log contains specified text. infix fun assert(text: String): <ERROR CLASS>
Assert that log contains specified message. infix fun assert(message: ConnectorMessageProvider): <ERROR CLASS> |
assertMessage |
Assert that log contains specified ConnectorMessage. fun assertMessage(message: ConnectorMessage, errorMessage: String? = null): <ERROR CLASS> |
assertText |
Assert that log contains specified text. fun assertText(text: String, errorMessage: String? = null): <ERROR CLASS> |
choice |
Retrieve choice member of main part of generic message with expected title fun choice(title: String): Choice? |
elementChoice |
Retrieve choice member with expected title belonging to element with specified index fun elementChoice(elementIndex: Int, title: String): Choice? |
genericMessage |
Convert current BotBusLog action first message to a generic message fun genericMessage(): GenericMessage? |
message |
The message of the specified ConnectorType if it exists. fun message(connectorType: ConnectorType): ConnectorMessage? |
text |
The text message if any. fun text(): String? |
alexa |
The Alexa message if any. fun BotBusMockLog.alexa(): AlexaMessage? |
ga |
The Google Assistant message if any. fun BotBusMockLog.ga(): GAResponseConnectorMessage? |
messenger |
The Messenger message if any. fun BotBusMockLog.messenger(): MessengerConnectorMessage? |
slack |
The Slack message if any. fun BotBusMockLog.slack(): SlackConnectorMessage? |
|
The WhatsApp message if any. fun BotBusMockLog.whatsapp(): WhatsAppBotMessage? |