Package com.tomtom.ivi.platform.messaging.api.testing.messaging.matcher
Types
Link copied to clipboard
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>
Content copied to clipboard
Helper class to test if a Conversation matches. If expectedId is null
, it will be excluded from verification.
Link copied to clipboard
data class MessageMatcher( val expectedId: Uid<Message>?, val expectedContact: ConversationContact, val expectedState: MessageState, val expectedContentText: String) : Matcher<Message>
Content copied to clipboard
Helper class to test if a Message matches. If expectedId is null
, it will be excluded from verification.
Functions
Link copied to clipboard
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.
Link copied to clipboard
fun MockKMatcherScope.matchMessage( expectedId: Uid<Message>?, expectedContact: ConversationContact, expectedText: String, expectedState: MessageState): Message
Content copied to clipboard
Helper method to verify in a verification scope if a Message matches.