@Test public void shouldInformListenersOnClick() throws Exception { listeners.add(firstListenerMock); listeners.add(secondListenerMock); cut.onClick(null); Mockito.verify(firstListenerMock, Mockito.times(1)).onHeaderClicked(TEST_ROW_INDEX); Mockito.verify(secondListenerMock, Mockito.times(1)).onHeaderClicked(TEST_ROW_INDEX); }
@Override public void onClick(final View view) { informHeaderListeners(); }
InternalHeaderClickListener implements View.OnClickListener { @Override public void onClick(final View view) { informHeaderListeners(); } }
InternalHeaderClickListener implements View.OnClickListener { @Override public void onClick(final View view) { informHeaderListeners(); } InternalHeaderClickListener(final int columnIndex, final Set<TableHeaderClickListener> listeners); }
InternalHeaderClickListener implements View.OnClickListener { @Override public void onClick(final View view) { informHeaderListeners(); } InternalHeaderClickListener(final int columnIndex, final Set<TableHeaderClickListener> listeners); @Override void onClick(final View view); }
InternalHeaderClickListener implements View.OnClickListener { @Override public void onClick(final View view) { informHeaderListeners(); } InternalHeaderClickListener(final int columnIndex, final Set<TableHeaderClickListener> listeners); @Override void onClick(final View view);  }