ConversationMatcher

data class ConversationMatcher(    val expectedId: Uid<Conversation>?,     val expectedContacts: Set<ConversationContact>,     val expectedCapabilities: EnumSet<ConversationCapability>,     val expectedMessageType: MessageType,     val expectedUnreadMessages: List<Uid<Message>>) : Matcher<Conversation>

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

Constructors

Link copied to clipboard
fun ConversationMatcher(    expectedId: Uid<Conversation>?,     expectedContacts: Set<ConversationContact>,     expectedCapabilities: EnumSet<ConversationCapability>,     expectedMessageType: MessageType,     expectedUnreadMessages: List<Uid<Message>>)

Properties

Link copied to clipboard
val expectedCapabilities: EnumSet<ConversationCapability>
Link copied to clipboard
val expectedContacts: Set<ConversationContact>
Link copied to clipboard
val expectedId: Uid<Conversation>?
Link copied to clipboard
val expectedMessageType: MessageType
Link copied to clipboard
val expectedUnreadMessages: List<Uid<Message>>

Functions

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