tock / ai.tock.bot.test / ch.tutteli.atrium.creating.AssertionPlant

Extensions for ch.tutteli.atrium.creating.AssertionPlant

asGenericMessage

fun Assert<BotBusMockLog>.asGenericMessage(assertionCreator: Assert<GenericMessage>.() -> Unit): Unit

toBeImage

fun Assert<Attachment>.toBeImage(): AssertionPlant<AttachmentType>

toBeSimpleTextMessage

fun Assert<BotBusMockLog>.toBeSimpleTextMessage(expectedText: String): Unit

toHaveAttachment

fun Assert<GenericElement>.toHaveAttachment(assertionCreator: Assert<Attachment>.() -> Unit): AssertionPlant<List<Attachment>>

toHaveChoice

fun Assert<GenericMessage>.toHaveChoice(title: String, assertionCreator: Assert<Choice>.() -> Unit): AssertionPlant<List<Choice>>

toHaveChoices

fun Assert<GenericElement>.toHaveChoices(expectedChoice: String, vararg otherExpectedChoices: String): AssertionPlant<List<Choice>>

toHaveElement

fun Assert<GenericMessage>.toHaveElement(index: Int, assertionCreator: Assert<GenericElement>.() -> Unit): AssertionPlant<List<GenericElement>>

toHaveExactlyChoices

fun Assert<GenericElement>.toHaveExactlyChoices(expectedChoice: String, vararg otherExpectedChoices: String): AssertionPlant<List<Choice>>

toHaveExactlyGlobalChoices

fun Assert<GenericMessage>.toHaveExactlyGlobalChoices(expectedChoice: String, vararg otherExpectedChoices: String): AssertionPlant<List<Choice>>

toHaveGlobalChoices

fun Assert<GenericMessage>.toHaveGlobalChoices(expectedChoice: String, vararg otherExpectedChoices: String): AssertionPlant<List<Choice>>

toHaveGlobalText

fun Assert<GenericMessage>.toHaveGlobalText(expectedText: String, textName: String = "text"): AssertionPlant<Map<String, String>>

toHaveIntent

fun Assert<Choice>.toHaveIntent(intentName: String): Unit

toHaveNotChoices

fun Assert<GenericElement>.toHaveNotChoices(unexpectedChoice: String, vararg otherUnexpectedChoices: String): AssertionPlant<List<Choice>>

toHaveNotGlobalChoices

fun Assert<GenericMessage>.toHaveNotGlobalChoices(unexpectedChoice: String, vararg otherUnexpectedChoices: String): AssertionPlant<List<Choice>>

toHaveParameter

fun Assert<Choice>.toHaveParameter(key: ParameterKey, value: String): Unit
fun Assert<Choice>.toHaveParameter(key: String, value: String): Unit

toHaveSubtitle

fun Assert<GenericElement>.toHaveSubtitle(expectedSubtitle: String): AssertionPlant<Map<String, String>>

toHaveText

fun Assert<GenericElement>.toHaveText(expectedText: String, textName: String): AssertionPlant<Map<String, String>>

toHaveTitle

fun Assert<GenericElement>.toHaveTitle(expectedTitle: String): AssertionPlant<Map<String, String>>
fun Assert<Choice>.toHaveTitle(title: String): Unit

toHaveUrl

fun Assert<Attachment>.toHaveUrl(url: String): AssertionPlant<String>