@Test public void fireEvent() { executableMenuItemPresenter.fireEvent(mockLIElement); verify(mockMenuItemsEventMap, times(1)).containsKey(mockLIElement); verify(mockEventBus, times(1)).fireEvent(eq(mockEvent)); }
@Override public void fireEvent(LIElement clickedElement) { if (menuItemsEventMap.containsKey(clickedElement)) { final Event event = menuItemsEventMap.get(clickedElement); eventBus.fireEvent(event); } }
ExecutableMenuItemPresenter implements ExecutableMenuItemView.Presenter { @Override public void fireEvent(LIElement clickedElement) { if (menuItemsEventMap.containsKey(clickedElement)) { final Event event = menuItemsEventMap.get(clickedElement); eventBus.fireEvent(event); } } }
ExecutableMenuItemPresenter implements ExecutableMenuItemView.Presenter { @Override public void fireEvent(LIElement clickedElement) { if (menuItemsEventMap.containsKey(clickedElement)) { final Event event = menuItemsEventMap.get(clickedElement); eventBus.fireEvent(event); } }  }
ExecutableMenuItemPresenter implements ExecutableMenuItemView.Presenter { @Override public void fireEvent(LIElement clickedElement) { if (menuItemsEventMap.containsKey(clickedElement)) { final Event event = menuItemsEventMap.get(clickedElement); eventBus.fireEvent(event); } }  @Override void init(BaseMenu parent); @Override void setEventBus(EventBus eventBus); @Override void onClickEvent(ClickEvent event, LIElement clickedElement); @Override void fireEvent(LIElement clickedElement); @Override LIElement getLExecutableMenuElement(String id, String label, Event event); @Override LIElement getLExecutableMenuElement(String id, String label); @Override void mapEvent(LIElement executableMenuItem, Event toBeMapped); @Override void enableElement(boolean toEnable); }
ExecutableMenuItemPresenter implements ExecutableMenuItemView.Presenter { @Override public void fireEvent(LIElement clickedElement) { if (menuItemsEventMap.containsKey(clickedElement)) { final Event event = menuItemsEventMap.get(clickedElement); eventBus.fireEvent(event); } }  @Override void init(BaseMenu parent); @Override void setEventBus(EventBus eventBus); @Override void onClickEvent(ClickEvent event, LIElement clickedElement); @Override void fireEvent(LIElement clickedElement); @Override LIElement getLExecutableMenuElement(String id, String label, Event event); @Override LIElement getLExecutableMenuElement(String id, String label); @Override void mapEvent(LIElement executableMenuItem, Event toBeMapped); @Override void enableElement(boolean toEnable);  }