BaseGridWidgetMouseDoubleClickHandler extends BaseGridWidgetMouseEventHandler implements NodeMouseDoubleClickHandler { @Override public void onNodeMouseDoubleClick(final NodeMouseDoubleClickEvent event) { doEventDispatch(event); } BaseGridWidgetMouseDoubleClickHandler(final GridWidget gridWidget,
                                                 final List<NodeMouseEventHandler> handlers); @Override void onNodeMouseDoubleClick(final NodeMouseDoubleClickEvent event);  }
@Test @SuppressWarnings("unchecked") public void visibleGrid() { when(gridWidget.isVisible()).thenReturn(true); mouseDoubleClickHandler.onNodeMouseDoubleClick(event); verify(eventHandler).onNodeMouseEvent(eq(gridWidget), any(Point2D.class), any(Optional.class), any(Optional.class), any(Optional.class), any(Optional.class), eq(event)); }
@Test @SuppressWarnings("unchecked") public void skipInvisibleGrid() { when(gridWidget.isVisible()).thenReturn(false); mouseDoubleClickHandler.onNodeMouseDoubleClick(event); verify(eventHandler, never()).onNodeMouseEvent(any(GridWidget.class), any(Point2D.class), any(Optional.class), any(Optional.class), any(Optional.class), any(Optional.class), any(AbstractNodeMouseEvent.class)); }