Package-level declarations

Types

Link copied to clipboard
@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.

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

Functions

Link copied to clipboard
@IviExperimental(reasons = [])
fun MockKMatcherScope.matchConversation(expectedId: Uid<Conversation>?, expectedContacts: Set<ConversationContact>, expectedCapabilities: EnumSet<ConversationCapability>, expectedMessageType: MessageType, expectedUnreadMessages: List<Uid<Message>>): Conversation

Helper method to verify in a verification scope if a Conversation matches.

Link copied to clipboard
@IviExperimental(reasons = [])
fun MockKMatcherScope.matchMessage(expectedId: Uid<Message>?, expectedContact: ConversationContact, expectedText: String, expectedState: MessageState): Message

Helper method to verify in a verification scope if a Message matches.