Package com.tomtom.ivi.platform.contacts.api.testing.servicemockextension
Types
Link copied to clipboard
class ContactsTestIviDataSource(jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true) : AbstractTestIviDataSource<ContactsDataSourceElement, ContactsDataSourceQuery>
Content copied to clipboard
Test data source which can be used during testing of contacts.
Functions
Link copied to clipboard
fun ContactsServiceMock.addFindContactByPhoneNumberQuery(phoneNumberToFind: String, contactToReturn: Contact?)
Content copied to clipboard
Add query when finding a contact by phone number.
Link copied to clipboard
fun ContactsServiceMock.addQueryWithResult(query: ContactsDataSourceQuery, result: List<ContactsDataSourceElement>)
Content copied to clipboard
Add or update a datasource query.
Link copied to clipboard
fun ContactsServiceMock.addSearchQuery(searchText: String, contactsToReturn: List<Contact>?)
Content copied to clipboard
Add query when searching for a contact.
Link copied to clipboard
Clears the list of contacts.
Link copied to clipboard
Performs a default initialization of the contacts service mock which makes the service available.
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? = ContactItemOrderBy(order = CONTACT_GROUP_GIVEN_NAME_ASC))
Content copied to clipboard
Add or update a list contacts.
Link copied to clipboard
fun ContactsSettingsServiceMock.setContactsOrder(order: ContactsSettingsService.ContactsOrder)
Content copied to clipboard
Changes the contacts order.