@Test public void mapEvent() { LIElement executableMenuItemMock = mock(LIElement.class); Event toBeMappedMock = mock(Event.class); baseMenu.mapEvent(executableMenuItemMock, toBeMappedMock); verify(executableMenuItemPresenterMock, times(1)).mapEvent(eq(executableMenuItemMock), eq(toBeMappedMock)); }
@Override public void mapEvent(LIElement executableMenuItem, Event toBeMapped) { executableMenuItemPresenter.mapEvent(executableMenuItem, toBeMapped); }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void mapEvent(LIElement executableMenuItem, Event toBeMapped) { executableMenuItemPresenter.mapEvent(executableMenuItem, toBeMapped); } }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void mapEvent(LIElement executableMenuItem, Event toBeMapped) { executableMenuItemPresenter.mapEvent(executableMenuItem, toBeMapped); }  }
BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void mapEvent(LIElement executableMenuItem, Event toBeMapped) { executableMenuItemPresenter.mapEvent(executableMenuItem, toBeMapped); }  @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 mapEvent(LIElement executableMenuItem, Event toBeMapped) { executableMenuItemPresenter.mapEvent(executableMenuItem, toBeMapped); }  @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);  }