Package-level declarations
Types
Link copied to clipboard
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
fun ContactsServiceMock.addQueryWithResult(query: ContactsDataSourceQuery, result: List<ContactsDataSourceElement>)
Add or update a datasource query.
Link copied to clipboard
fun ContactsServiceMock.addSearchQuery(searchText: String, contactItemsToReturn: List<ContactsDataSourceElement.ContactItem>?, orderBy: ContactsDataSourceQuery.ContactOrderBy? = ContactOrderBy(ContactItemOrder.GIVEN_NAME_ASC))
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? = ContactOrderBy(ContactItemOrder.GIVEN_NAME_ASC))
Add or update a list contacts.
Link copied to clipboard
Changes the contacts order.