Package ai.tock.bot.test
Class BotBusMockLog
-
- All Implemented Interfaces:
public final class BotBusMockLogThe actions sent by the mocked bus.
-
-
Constructor Summary
Constructors Constructor Description BotBusMockLog(Action action, Long delay)
-
Method Summary
Modifier and Type Method Description final ActiongetAction()The action sent. final LonggetDelay()The delay before the action is sent. final ConnectorMessagemessage(ConnectorType connectorType)The message of the specified ConnectorType if it exists. final Stringtext()The text message if any. final <Error class: unknown class>assertText(String text, String errorMessage)Assert that log contains specified text. final <Error class: unknown class>assert(String text)Assert that log contains specified text. final <Error class: unknown class>assert(ConnectorMessageProvider message)Assert that log contains specified message. final <Error class: unknown class>assertMessage(ConnectorMessage message, String errorMessage)Assert that log contains specified ConnectorMessage. final GenericMessagegenericMessage()Convert current BotBusLog action first message to a generic message final ChoiceelementChoice(Integer elementIndex, String title)Retrieve choice member with expected title belonging to element with specified index final Choicechoice(String title)Retrieve choice member of main part of generic message with expected title -
-
Constructor Detail
-
BotBusMockLog
BotBusMockLog(Action action, Long delay)
-
-
Method Detail
-
getAction
final Action getAction()
The action sent.
-
message
final ConnectorMessage message(ConnectorType connectorType)
The message of the specified ConnectorType if it exists.
-
assertText
final <Error class: unknown class> assertText(String text, String errorMessage)
Assert that log contains specified text.
-
assert
final <Error class: unknown class> assert(String text)
Assert that log contains specified text.
-
assert
final <Error class: unknown class> assert(ConnectorMessageProvider message)
Assert that log contains specified message.
-
assertMessage
final <Error class: unknown class> assertMessage(ConnectorMessage message, String errorMessage)
Assert that log contains specified ConnectorMessage.
-
genericMessage
final GenericMessage genericMessage()
Convert current BotBusLog action first message to a generic message
-
elementChoice
final Choice elementChoice(Integer elementIndex, String title)
Retrieve choice member with expected title belonging to element with specified index
-
-
-
-