Skip to content

Commit

Permalink
Added unit test to verify onCategoryItemClicked (commons-app#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkumar468 authored and maskaravivek committed Nov 30, 2019
1 parent 36e0f76 commit dd578f7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,13 @@ class CategoriesPresenterTest {
verify(repository)?.setSelectedCategories(ArgumentMatchers.anyList())
verify(view)?.goToNextScreen()
}

/**
* Test onCategory Item clicked
*/
@Test
fun onCategoryItemClickedTest() {
categoriesPresenter?.onCategoryItemClicked(categoryItem)
verify(repository)?.onCategoryClicked(categoryItem)
}
}

0 comments on commit dd578f7

Please sign in to comment.