matchConversation
fun MockKMatcherScope.matchConversation( expectedId: Uid<Conversation>?, expectedContacts: Set<ConversationContact>, expectedCapabilities: EnumSet<ConversationCapability>, expectedMessageType: MessageType, expectedUnreadMessages: List<Uid<Message>>): Conversation
Content copied to clipboard
Helper method to verify in a verification scope if a Conversation matches.
For example:
verify {
mockMessagingManagementService.addConversationAsync(
matchConversation(
setOf(MessagingService.ConversationContact(CONTACT_NAME, CONTACT_PHONE, null)
),
EnumSet.of(MessagingService.ConversationCapability.CAN_REPLY_USING_TEXT),
CONVERSATION.messageType,
emptyList()
)
}
Content copied to clipboard