Skip to content

Instantly share code, notes, and snippets.

@rozkminiacz
Created March 12, 2018 09:20
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 rozkminiacz/c4b1c5e939c4aeeb84d36a2179e00f2d to your computer and use it in GitHub Desktop.
Save rozkminiacz/c4b1c5e939c4aeeb84d36a2179e00f2d to your computer and use it in GitHub Desktop.
val peopleList : List<Person> = listOf(
Person(id = "1", firstName = "Mark", surname = "Train"),
Person(id = "2", firstName = "George", secondName = "Edward", surname = "Bicycle")
)
val repository : Repository<Person> = mock{
on { getAll() } doReturn Single.just(peopleList)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment