Searched refs:mockOnLongClickListener (Results 1 – 1 of 1) sorted by relevance
3157 View.OnLongClickListener mockOnLongClickListener = mock(View.OnLongClickListener.class); in testPerformLongClick() local3158 when(mockOnLongClickListener.onLongClick(any(View.class))).thenReturn(Boolean.TRUE); in testPerformLongClick()3168 mTextView.setOnLongClickListener(mockOnLongClickListener); in testPerformLongClick()3171 verify(mockOnLongClickListener, times(1)).onLongClick(mTextView); in testPerformLongClick()3174 reset(mockOnLongClickListener); in testPerformLongClick()3175 when(mockOnLongClickListener.onLongClick(any(View.class))).thenReturn(Boolean.FALSE); in testPerformLongClick()3177 verify(mockOnLongClickListener, times(1)).onLongClick(mTextView); in testPerformLongClick()3186 verifyNoMoreInteractions(mockOnLongClickListener); in testPerformLongClick()