@Test public void clickOnButton() { clickHandler.onClick(new ClickEvent() {}); Mockito.verify(element) .setInnerHTML("Client said: \"Hello, World!\"<br>Server answered: \"Hi!\""); }
@Test public void testRestoreDefaultFilters() { clickHandler.onClick(new ClickEvent() {}); verify(supportsRestoreDefaultFilters).onRestoreDefaultFilters(); }
public void onClick(ClickEvent event) { for (ClickHandler iconClickHandler : m_iconClickHandlers) { iconClickHandler.onClick(event); } }