Package ai.tock.bot.test
Class BotBusAssertsKt
-
- All Implemented Interfaces:
public final class BotBusAssertsKt
-
-
Method Summary
Modifier and Type Method Description final static UnittoBeSimpleTextMessage(AssertionPlant<BotBusMockLog> $self, String expectedText)final static UnitasGenericMessage(AssertionPlant<BotBusMockLog> $self, Function1<AssertionPlant<GenericMessage>, Unit> assertionCreator)final static UnitasGenericMessage(ConnectorMessage $self, Function1<AssertionPlant<GenericMessage>, Unit> assertionCreator)final static AssertionPlant<Map<String, String>>toHaveGlobalText(AssertionPlant<GenericMessage> $self, String expectedText, String textName)final static AssertionPlant<List<Choice>>toHaveGlobalChoices(AssertionPlant<GenericMessage> $self, String expectedChoice, String otherExpectedChoices)final static AssertionPlant<List<Choice>>toHaveNotGlobalChoices(AssertionPlant<GenericMessage> $self, String unexpectedChoice, String otherUnexpectedChoices)final static AssertionPlant<List<Choice>>toHaveExactlyGlobalChoices(AssertionPlant<GenericMessage> $self, String expectedChoice, String otherExpectedChoices)final static AssertionPlant<List<GenericElement>>toHaveElement(AssertionPlant<GenericMessage> $self, Integer index, Function1<AssertionPlant<GenericElement>, Unit> assertionCreator)final static AssertionPlant<Map<String, String>>toHaveText(AssertionPlant<GenericElement> $self, String expectedText, String textName)final static AssertionPlant<Map<String, String>>toHaveTitle(AssertionPlant<GenericElement> $self, String expectedTitle)final static UnittoHaveTitle(AssertionPlant<Choice> $self, String title)final static AssertionPlant<Map<String, String>>toHaveSubtitle(AssertionPlant<GenericElement> $self, String expectedSubtitle)final static AssertionPlant<List<Choice>>toHaveChoices(AssertionPlant<GenericElement> $self, String expectedChoice, String otherExpectedChoices)final static AssertionPlant<List<Choice>>toHaveNotChoices(AssertionPlant<GenericElement> $self, String unexpectedChoice, String otherUnexpectedChoices)final static AssertionPlant<List<Choice>>toHaveExactlyChoices(AssertionPlant<GenericElement> $self, String expectedChoice, String otherExpectedChoices)final static AssertionPlant<List<Attachment>>toHaveAttachment(AssertionPlant<GenericElement> $self, Function1<AssertionPlant<Attachment>, Unit> assertionCreator)final static AssertionPlant<String>toHaveUrl(AssertionPlant<Attachment> $self, String url)final static AssertionPlant<SendAttachment.AttachmentType>toBeImage(AssertionPlant<Attachment> $self)final static AssertionPlant<List<Choice>>toHaveChoice(AssertionPlant<GenericMessage> $self, String title, Function1<AssertionPlant<Choice>, Unit> assertionCreator)final static UnittoHaveIntent(AssertionPlant<Choice> $self, String intentName)final static UnittoHaveParameter(AssertionPlant<Choice> $self, ParameterKey key, String value)final static UnittoHaveParameter(AssertionPlant<Choice> $self, String key, String value)-
-
Method Detail
-
toBeSimpleTextMessage
final static Unit toBeSimpleTextMessage(AssertionPlant<BotBusMockLog> $self, String expectedText)
-
asGenericMessage
final static Unit asGenericMessage(AssertionPlant<BotBusMockLog> $self, Function1<AssertionPlant<GenericMessage>, Unit> assertionCreator)
-
asGenericMessage
final static Unit asGenericMessage(ConnectorMessage $self, Function1<AssertionPlant<GenericMessage>, Unit> assertionCreator)
-
toHaveGlobalText
final static AssertionPlant<Map<String, String>> toHaveGlobalText(AssertionPlant<GenericMessage> $self, String expectedText, String textName)
-
toHaveGlobalChoices
final static AssertionPlant<List<Choice>> toHaveGlobalChoices(AssertionPlant<GenericMessage> $self, String expectedChoice, String otherExpectedChoices)
-
toHaveNotGlobalChoices
final static AssertionPlant<List<Choice>> toHaveNotGlobalChoices(AssertionPlant<GenericMessage> $self, String unexpectedChoice, String otherUnexpectedChoices)
-
toHaveExactlyGlobalChoices
final static AssertionPlant<List<Choice>> toHaveExactlyGlobalChoices(AssertionPlant<GenericMessage> $self, String expectedChoice, String otherExpectedChoices)
-
toHaveElement
final static AssertionPlant<List<GenericElement>> toHaveElement(AssertionPlant<GenericMessage> $self, Integer index, Function1<AssertionPlant<GenericElement>, Unit> assertionCreator)
-
toHaveText
final static AssertionPlant<Map<String, String>> toHaveText(AssertionPlant<GenericElement> $self, String expectedText, String textName)
-
toHaveTitle
final static AssertionPlant<Map<String, String>> toHaveTitle(AssertionPlant<GenericElement> $self, String expectedTitle)
-
toHaveTitle
final static Unit toHaveTitle(AssertionPlant<Choice> $self, String title)
-
toHaveSubtitle
final static AssertionPlant<Map<String, String>> toHaveSubtitle(AssertionPlant<GenericElement> $self, String expectedSubtitle)
-
toHaveChoices
final static AssertionPlant<List<Choice>> toHaveChoices(AssertionPlant<GenericElement> $self, String expectedChoice, String otherExpectedChoices)
-
toHaveNotChoices
final static AssertionPlant<List<Choice>> toHaveNotChoices(AssertionPlant<GenericElement> $self, String unexpectedChoice, String otherUnexpectedChoices)
-
toHaveExactlyChoices
final static AssertionPlant<List<Choice>> toHaveExactlyChoices(AssertionPlant<GenericElement> $self, String expectedChoice, String otherExpectedChoices)
-
toHaveAttachment
final static AssertionPlant<List<Attachment>> toHaveAttachment(AssertionPlant<GenericElement> $self, Function1<AssertionPlant<Attachment>, Unit> assertionCreator)
-
toHaveUrl
final static AssertionPlant<String> toHaveUrl(AssertionPlant<Attachment> $self, String url)
-
toBeImage
final static AssertionPlant<SendAttachment.AttachmentType> toBeImage(AssertionPlant<Attachment> $self)
-
toHaveChoice
final static AssertionPlant<List<Choice>> toHaveChoice(AssertionPlant<GenericMessage> $self, String title, Function1<AssertionPlant<Choice>, Unit> assertionCreator)
-
toHaveIntent
final static Unit toHaveIntent(AssertionPlant<Choice> $self, String intentName)
-
toHaveParameter
final static Unit toHaveParameter(AssertionPlant<Choice> $self, ParameterKey key, String value)
-
toHaveParameter
final static Unit toHaveParameter(AssertionPlant<Choice> $self, String key, String value)
-
-
-
-