MessageMatcher

data class MessageMatcher(    val expectedId: Uid<Message>?,     val expectedContact: ConversationContact,     val expectedState: MessageState,     val expectedContentText: String) : Matcher<Message>

Helper class to test if a Message matches. If expectedId is null, it will be excluded from verification.

Constructors

Link copied to clipboard
fun MessageMatcher(    expectedId: Uid<Message>?,     expectedContact: ConversationContact,     expectedState: MessageState,     expectedContentText: String)

Properties

Link copied to clipboard
val expectedContact: ConversationContact
Link copied to clipboard
val expectedContentText: String
Link copied to clipboard
val expectedId: Uid<Message>?
Link copied to clipboard
val expectedState: MessageState

Functions

Link copied to clipboard
open override fun match(arg: Message?): Boolean
Link copied to clipboard
open override fun substitute(map: Map<Any, Any>): Matcher<Message>
Link copied to clipboard
open override fun toString(): String