Package com.tomtom.ivi.platform.contacts.api.testing.servicemockextension

Types

Link copied to clipboard
@IviExperimental(reasons = [])
class ContactsTestIviDataSource(jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true) : AbstractTestIviDataSource<ContactsDataSourceElement, ContactsDataSourceQuery>

Test data source which can be used during testing of contacts.

Functions

Link copied to clipboard
fun ContactsServiceMock.addFilterByPhoneNumberQuery(phoneNumberToFind: String, contactToReturn: Contact?)

Add query when filtering on contacts by phone number.

Link copied to clipboard

Add or update a datasource query.

Link copied to clipboard
fun ContactsServiceMock.addSearchQuery(    searchText: String,     contactGroupsToReturn: List<ContactsDataSourceElement.ContactGroup>?,     orderBy: ContactsDataSourceQuery.ContactOrderBy? = ContactOrderBy(ContactItemOrder.GIVEN_NAME_ASC),     groupBy: ContactsDataSourceQuery.ContactGroupBy? = ContactGroupBy(ContactItemGroup.GIVEN_NAME_ASC))

Add query when searching for a contact.

Link copied to clipboard
fun ContactsServiceMock.clearContacts()

Clears the list of contacts.

Link copied to clipboard
fun ContactsServiceMock.defaultInit()

Performs a default initialization of the contacts service mock which makes the service available.

fun ContactsSettingsServiceMock.defaultInit()

Performs a default initialization of the contacts settings service mock which makes the service available.

Link copied to clipboard
fun ContactsServiceMock.setContacts(contactsList: List<Contact>, contactOrderBy: ContactsDataSourceQuery.ContactOrderBy? = ContactOrderBy(ContactItemOrder.GIVEN_NAME_ASC))

Add or update a list contacts.

Link copied to clipboard

Changes the contacts order.