Skip to content

Instantly share code, notes, and snippets.

@Kpeved
Created November 2, 2019 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kpeved/639a52ea1663c638b3d5954c205b69b8 to your computer and use it in GitHub Desktop.
Save Kpeved/639a52ea1663c638b3d5954c205b69b8 to your computer and use it in GitHub Desktop.
val contentResolver :ContentResolver = mock {
on {
query(
same(ContactsContract.CommonDataKinds.Phone.CONTENT_URI),
anyOrNull(),
anyOrNull(),
anyOrNull(),
anyOrNull())
} doReturn phoneNumbersRoboCursor
on {
query(
same(ContactsContract.Data.CONTENT_URI),
anyOrNull(),
anyOrNull(),
anyOrNull(),
anyOrNull())
} doReturn allContactsRoboCursor
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment