public class BotBusMockLog
The actions sent by the mocked bus.
public BotBusMockLog(@NotNull
ai.tock.bot.engine.action.Action action,
long delay)
The actions sent by the mocked bus.
action - The action sent.delay - The delay before the action is sent.@Nullable
public ai.tock.bot.connector.ConnectorMessage message(@NotNull
ai.tock.bot.connector.ConnectorType connectorType)
The message of the specified ConnectorType if it exists.
@Nullable public java.lang.String text()
The text message if any.
public void assertText(@NotNull
java.lang.String text,
@Nullable
java.lang.String errorMessage)
Assert that log contains specified text.
public void assert(@NotNull
java.lang.String text)
Assert that log contains specified text.
public void assertMessage(@NotNull
ai.tock.bot.connector.ConnectorMessage message,
@Nullable
java.lang.String errorMessage)
Assert that log contains specified ConnectorMessage.
public void assert(@NotNull
ai.tock.bot.connector.ConnectorMessage message)
Assert that log contains specified message.
@Nullable public ai.tock.bot.engine.message.GenericMessage genericMessage()
Convert current BotBusLog action first message to a generic message
@Nullable
public ai.tock.bot.engine.message.Choice elementChoice(int elementIndex,
@NotNull
java.lang.String title)
Retrieve choice member with expected title belonging to element with specified index
@Nullable
public ai.tock.bot.engine.message.Choice choice(@NotNull
java.lang.String title)
Retrieve choice member of main part of generic message with expected title
@NotNull public ai.tock.bot.engine.action.Action getAction()
The action sent.
public long getDelay()
The delay before the action is sent.
@NotNull public ai.tock.bot.engine.action.Action component1()
The action sent.
public long component2()
The delay before the action is sent.
@NotNull public BotBusMockLog copy(@NotNull ai.tock.bot.engine.action.Action action, long delay)
The actions sent by the mocked bus.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)