public void test_matchFound_filterTrue() throws Exception { when(filter.passes(match)).thenReturn(true); // "match" should be passed to "listener" filteredListener.matchFound(match); verify(listener).matchFound(match); verifyNoMoreInteractions(listener); }
public void test_searchComplete() throws Exception { filteredListener.searchComplete(); verify(listener).searchComplete(); verifyNoMoreInteractions(listener); }