Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Gerlac
Created November 12, 2017 18:39
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 Gerlac/82c9b4eecccc00d70ed8855e81fe24b5 to your computer and use it in GitHub Desktop.
Save Gerlac/82c9b4eecccc00d70ed8855e81fe24b5 to your computer and use it in GitHub Desktop.
Home presenter Test. Debounce Faiure
@Test
fun onTextTyped_showSearchSuggestions() {
`when`(suggestionsRepository.getSearchTermSuggestions(ANY_SEARCH_TERM)).thenReturn(Single.just(ANY_SUGGESTIONS_LIST))
val presenter = createSUT()
presenter.onNewSearch(ANY_SEARCH_TERM)
verify(view).showSearchSuggestions(ANY_SUGGESTIONS_LIST)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment