BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public void enableElement(Element element, boolean enabled) { if (enabled) { element.removeClassName(Styles.DISABLED); } else { element.addClassName(Styles.DISABLED); } }  @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);  }
@Test public void enableElement() { Element mockElement = mock(Element.class); baseMenu.enableElement(mockElement, true); verify(mockElement, times(1)).removeClassName(Styles.DISABLED); reset(mockElement); baseMenu.enableElement(mockElement, false); verify(mockElement, times(1)).addClassName(Styles.DISABLED); }