-
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 ConnectorMessagemessage(ConnectorType connectorType)The message of the specified ConnectorType if it exists. final Stringtext()The text message if any. final UnitassertText(String text, String errorMessage)Assert that log contains specified text. final Unitassert(String text)Assert that log contains specified text. final Unitassert(ConnectorMessageProvider message)Assert that log contains specified message. final UnitassertMessage(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 final Actioncomponent1()final Longcomponent2()final BotBusMockLogcopy(Action action, Long delay)final ActiongetAction()The action sent. final LonggetDelay()The delay before the action is sent. -
-
Constructor Detail
-
BotBusMockLog
BotBusMockLog(Action action, Long delay)
-
-
Method Detail
-
message
final ConnectorMessage message(ConnectorType connectorType)
The message of the specified ConnectorType if it exists.
-
assertText
final Unit assertText(String text, String errorMessage)
Assert that log contains specified text.
-
assert
final Unit assert(ConnectorMessageProvider message)
Assert that log contains specified message.
-
assertMessage
final Unit 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
-
choice
final Choice choice(String title)
Retrieve choice member of main part of generic message with expected title
-
component1
final Action component1()
-
component2
final Long component2()
-
copy
final BotBusMockLog copy(Action action, Long delay)
-
getAction
final Action getAction()
The action sent.
-
-
-
-