@Test public void onContextMenuEvent() { ContextMenuEvent mockEvent = mock(ContextMenuEvent.class); baseMenu.onContextMenuEvent(mockEvent); verify(mockEvent, times(1)).preventDefault(); verify(mockEvent, times(1)).stopPropagation(); verify(baseMenu, times(1)).hide(); }
@Override public void onContextMenuEvent(ContextMenuEvent event) { event.preventDefault(); event.stopPropagation(); hide(); }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void onContextMenuEvent(ContextMenuEvent event) { event.preventDefault(); event.stopPropagation(); hide(); } }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void onContextMenuEvent(ContextMenuEvent event) { event.preventDefault(); event.stopPropagation(); hide(); }  }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void onContextMenuEvent(ContextMenuEvent event) { event.preventDefault(); event.stopPropagation(); hide(); }  @PostConstruct @Override void initialise(); @Override LIElement addMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItem(String id, String label, String i18n, Event event); @Override LIElement addExecutableMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItemAfter(String id, String label, String i18n, LIElement previous); @Override void removeMenuItem(LIElement toRemove); @Override void mapEvent(LIElement executableMenuItem, Event toBeMapped); @Override Widget asWidget(); @Override void show(final int mx, final int my); @Override void hide(); @Override boolean isShown(); @Override BaseMenuView getView(); @Override void enableElement(Element element, boolean enabled); @Override boolean isDisabled(final Element element); @Override void onContextMenuEvent(ContextMenuEvent event); }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void onContextMenuEvent(ContextMenuEvent event) { event.preventDefault(); event.stopPropagation(); hide(); }  @PostConstruct @Override void initialise(); @Override LIElement addMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItem(String id, String label, String i18n, Event event); @Override LIElement addExecutableMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItemAfter(String id, String label, String i18n, LIElement previous); @Override void removeMenuItem(LIElement toRemove); @Override void mapEvent(LIElement executableMenuItem, Event toBeMapped); @Override Widget asWidget(); @Override void show(final int mx, final int my); @Override void hide(); @Override boolean isShown(); @Override BaseMenuView getView(); @Override void enableElement(Element element, boolean enabled); @Override boolean isDisabled(final Element element); @Override void onContextMenuEvent(ContextMenuEvent event);  }