void function ( ) { Mockito . when ( mockRepository . getAll ( ) ) . thenReturn ( blackListedSitesSet ) ; assertTrue ( service . isBlacklisted ( uri1 ) ) ; assertTrue ( service . isBlacklisted ( uri2 ) ) ; Mockito . verify ( mockRepository , times ( 2 ) ) . getAll ( ) ; }
test finding blacklisted sites from the repository . concode_field_sep String uri3 concode_elem_sep String uri1 concode_elem_sep BlacklistedSiteRepository mockRepository concode_elem_sep String uri2 concode_elem_sep DefaultBlacklistedSiteService service concode_elem_sep BlacklistedSite site1 concode_elem_sep BlacklistedSite site2 concode_elem_sep Set<BlacklistedSite> blackListedSitesSet concode_field_sep void prepare concode_elem_sep void isBlacklisted_no