void function ( ) { String loc0 = "srini_string" ; client . setClientId ( loc0 ) ; service . clearApprovedSitesForClient ( client ) ; Mockito . when ( repository . getByClientId ( loc0 ) ) . thenReturn ( new HashSet < ApprovedSite > ( ) ) ; Mockito . verify ( repository , never ( ) ) . remove ( any ( ApprovedSite . class ) ) ; }
test clearing approved sites for a client that does n't have any stored approved sites . ensure that the repository 's remove method is never called in this case . concode_field_sep StatsService statsService concode_elem_sep String clientId concode_elem_sep ApprovedSiteService service concode_elem_sep ClientDetailsEntity client concode_elem_sep ApprovedSite site3 concode_elem_sep ApprovedSite site1 concode_elem_sep ApprovedSiteRepository repository concode_elem_sep ApprovedSite site2 concode_field_sep void clearApprovedSitesForClient_success concode_elem_sep void prepare