ConversationMatcher

@IviExperimental(reasons = [])
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
Link copied to clipboard
Link copied to clipboard

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