Searched refs:mockOnLongClickListener (Results 1 – 1 of 1) sorted by relevance
3479 View.OnLongClickListener mockOnLongClickListener = mock(View.OnLongClickListener.class); in testPerformLongClick() local3480 when(mockOnLongClickListener.onLongClick(any(View.class))).thenReturn(Boolean.TRUE); in testPerformLongClick()3490 mTextView.setOnLongClickListener(mockOnLongClickListener); in testPerformLongClick()3493 verify(mockOnLongClickListener, times(1)).onLongClick(mTextView); in testPerformLongClick()3496 reset(mockOnLongClickListener); in testPerformLongClick()3497 when(mockOnLongClickListener.onLongClick(any(View.class))).thenReturn(Boolean.FALSE); in testPerformLongClick()3499 verify(mockOnLongClickListener, times(1)).onLongClick(mTextView); in testPerformLongClick()3508 verifyNoMoreInteractions(mockOnLongClickListener); in testPerformLongClick()