@Test public void onClickEvent() { ClickEvent mockClickEvent = mock(ClickEvent.class); executableMenuItemPresenter.onClickEvent(mockClickEvent, mockLIElement); verify(mockClickEvent, times(1)).preventDefault(); verify(mockClickEvent, times(1)).stopPropagation(); verify(mockparent, times(1)).hide(); verify(executableMenuItemPresenter, times(1)).fireEvent(eq(mockLIElement)); }
@Override public void onClickEvent(ClickEvent event, LIElement clickedElement) { event.preventDefault(); event.stopPropagation(); parent.hide(); fireEvent(clickedElement); }
ExecutableMenuItemPresenter implements ExecutableMenuItemView.Presenter { @Override public void onClickEvent(ClickEvent event, LIElement clickedElement) { event.preventDefault(); event.stopPropagation(); parent.hide(); fireEvent(clickedElement); } }
ExecutableMenuItemPresenter implements ExecutableMenuItemView.Presenter { @Override public void onClickEvent(ClickEvent event, LIElement clickedElement) { event.preventDefault(); event.stopPropagation(); parent.hide(); fireEvent(clickedElement); }  }
ExecutableMenuItemPresenter implements ExecutableMenuItemView.Presenter { @Override public void onClickEvent(ClickEvent event, LIElement clickedElement) { event.preventDefault(); event.stopPropagation(); parent.hide(); fireEvent(clickedElement); }  @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 onClickEvent(ClickEvent event, LIElement clickedElement) { event.preventDefault(); event.stopPropagation(); parent.hide(); fireEvent(clickedElement); }  @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);  }